CVE-2025-46569

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-46569
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-46569.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-46569
Aliases
Related
Published
2025-05-01T20:15:37Z
Modified
2025-05-17T14:26:33.070281Z
Downstream
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/open-policy-agent/opa

Affected ranges

Type
GIT
Repo
https://github.com/open-policy-agent/opa
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.1.0
v0.1.0-rc1
v0.1.0-rc2
v0.1.0-rc3
v0.10.0
v0.10.1
v0.10.2
v0.10.3
v0.10.4
v0.10.5
v0.10.6
v0.10.7
v0.11.0
v0.12.0
v0.13.0
v0.14.0
v0.15.0
v0.15.1
v0.16.0
v0.17.0
v0.17.1
v0.17.2
v0.18.0
v0.19.0
v0.19.0-rc1
v0.19.1
v0.2.0
v0.2.1
v0.2.2
v0.20.0
v0.20.1
v0.20.2
v0.21.0
v0.22.0
v0.23.0
v0.24.0
v0.25.0
v0.25.0-rc1
v0.25.0-rc3
v0.25.0-rc4
v0.25.1
v0.25.2
v0.26.0
v0.27.0
v0.27.1
v0.28.0
v0.29.0
v0.29.1
v0.29.2
v0.29.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