CVE-2025-46569open-policy-agent opa
High 7.4
Follow: this CVE · open-policy-agent · open-policy-agent opa We alert you by email or Slack (account required).
- Priority
- 44
- CVSS 4.0
- 7.4
- EPSS
- —
- Auth required
- Yes
- Published
- May 1, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for opa.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/open-policy-agent/opa |
< 1.4.0 |
1.4.0 |
go get github.com/open-policy-agent/opa@v1.4.0 |
| Go | github.com/open-policy-agent/opa |
< 1.4.0 |
1.4.0 |
go get github.com/open-policy-agent/opa@v1.4.0 |
| Go | github.com/open-policy-agent/opa/server |
< 1.4.0 |
1.4.0 |
go get github.com/open-policy-agent/opa/server@v1.4.0 |
| Go | github.com/open-policy-agent/opa/v1/server |
< 1.4.0 |
1.4.0 |
go get github.com/open-policy-agent/opa/v1/server@v1.4.0 |
Per OSV / GitHub Advisories (GHSA-6m8w-jc87-6cr7, GO-2025-3660). Check the version in your lockfile before upgrading.
Affected products
- open-policy-agent · opa
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for hauler · SUSE · openSUSE-SU-2025:20160-1 · Dec 12, 2025 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.