cve.bz

CVE-2025-46569

7.4 highEPSS 0.5%

High (7.4). EPSS 0.5% chance of exploitation in the next 30 days. Fixed in github.com/open-policy-agent/opa/v1/server 1.4.0.

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.

Severity

CVSS 4.0

7.4 high
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
EPSS
0.5% chance of exploitation in the next 30 days; higher than 44% of CVEs (scores of 2026-10-31)
CWEs
CWE-94, CWE-863
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6m8w-jc87-6cr7Gogithub.com/open-policy-agent/opa/v1/server<1.4.01.4.0
GHSA-6m8w-jc87-6cr7Gogithub.com/open-policy-agent/opa/server<1.4.01.4.0
GHSA-6m8w-jc87-6cr7Gogithub.com/open-policy-agent/opa<1.4.01.4.0
GO-2025-3660Gogithub.com/open-policy-agent/opa<1.4.01.4.0

References

Check your stackJSON