Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2025-46569

Опубликовано: 01 мая 2025
Источник: redhat
CVSS3: 8.1
EPSS Низкий

Описание

Open Policy Agent (OPA) is an open source, general-purpose policy engine. Prior to version 1.4.0, when run as a server, OPA exposes an HTTP Data API for reading and writing documents. Requesting a virtual document through the Data API entails policy evaluation, where a Rego query containing a single data document reference is constructed from the requested path. This query is then used for policy evaluation. A HTTP request path can be crafted in a way that injects Rego code into the constructed query. The evaluation result cannot be made to return any other data than what is generated by the requested path, but this path can be misdirected, and the injected Rego code can be crafted to make the query succeed or fail; opening up for oracle attacks or, given the right circumstances, erroneous policy decision results. Furthermore, the injected code can be crafted to be computationally expensive, resulting in a Denial Of Service (DoS) attack. This issue has been patched in version 1.4.0. A workaround involves having network access to OPA’s RESTful APIs being limited to localhost and/or trusted networks, unless necessary for production reasons.

A flaw was found in Open Policy Agent (OPA) that could lead to information disclosure and a denial of service. An attacker can inject malicious Rego code by sending specially crafted HTTP requests to the Data API. This injected code can then be leveraged to conduct Oracle attacks, potentially revealing sensitive information and impacting system availability.

Отчет

This vulnerability is rated as an IMPORTANT severity because this flaw allows an attacker to craft a malicious HTTP request path that injects Rego code into the constructed policy query, allowing an attacker to determine query success or failure, and under certain circumstances, produce erroneous policy decision result, injected code can result in a Denial of Service (DoS) attack, impacting the availability of the OPA server.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-validation-rhel9Affected

Показывать по

Дополнительная информация

Статус:

Important
Дефект:
CWE-863
Дефект:
CWE-94
https://bugzilla.redhat.com/show_bug.cgi?id=2363571github.com/open-policy-agent/opa/server: github.com/open-policy-agent/opa/v1/server: OPA server Data API HTTP path injection of Rego

EPSS

Процентиль: 6%
0.00026
Низкий

8.1 High

CVSS3

Связанные уязвимости

nvd
6 месяцев назад

Open Policy Agent (OPA) is an open source, general-purpose policy engine. Prior to version 1.4.0, when run as a server, OPA exposes an HTTP Data API for reading and writing documents. Requesting a virtual document through the Data API entails policy evaluation, where a Rego query containing a single data document reference is constructed from the requested path. This query is then used for policy evaluation. A HTTP request path can be crafted in a way that injects Rego code into the constructed query. The evaluation result cannot be made to return any other data than what is generated by the requested path, but this path can be misdirected, and the injected Rego code can be crafted to make the query succeed or fail; opening up for oracle attacks or, given the right circumstances, erroneous policy decision results. Furthermore, the injected code can be crafted to be computationally expensive, resulting in a Denial Of Service (DoS) attack. This issue has been patched in version 1.4.0. A

msrc
4 месяца назад

OPA server Data API HTTP path injection of Rego

debian
6 месяцев назад

Open Policy Agent (OPA) is an open source, general-purpose policy engi ...

suse-cvrf
3 месяца назад

Security update for cosign

github
6 месяцев назад

OPA server Data API HTTP path injection of Rego

EPSS

Процентиль: 6%
0.00026
Низкий

8.1 High

CVSS3