{"cve":"CVE-2025-46569","nvd":{"published":"2025-05-01T20:15:37.887","modified":"2026-06-17T09:26:38.420","status":"Deferred","description":"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.","cvss_v4":{"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","score":7.4},"cvss_v3":null,"cwes":["CWE-94","CWE-863"],"references":["https://github.com/open-policy-agent/opa/commit/ad2063247a14711882f18c387a511fc8094aa79c","https://github.com/open-policy-agent/opa/security/advisories/GHSA-6m8w-jc87-6cr7"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:01:22.920403922+00:00"},"epss":{"cve":"CVE-2025-46569","score":0.00532,"percentile":0.44966,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6m8w-jc87-6cr7","url":"https://osv.dev/vulnerability/GHSA-6m8w-jc87-6cr7","summary":"OPA server Data API HTTP path injection of Rego","modified":"2026-09-10T03:50:24.280754088Z","packages":[{"ecosystem":"Go","name":"github.com/open-policy-agent/opa/v1/server","purl":"pkg:golang/github.com/open-policy-agent/opa/v1/server","ranges":["<1.4.0"],"fixed":["1.4.0"]},{"ecosystem":"Go","name":"github.com/open-policy-agent/opa/server","purl":"pkg:golang/github.com/open-policy-agent/opa/server","ranges":["<1.4.0"],"fixed":["1.4.0"]},{"ecosystem":"Go","name":"github.com/open-policy-agent/opa","purl":"pkg:golang/github.com/open-policy-agent/opa","ranges":["<1.4.0"],"fixed":["1.4.0"]}]},{"id":"GO-2025-3660","url":"https://osv.dev/vulnerability/GO-2025-3660","summary":"OPA server Data API HTTP path injection of Rego in github.com/open-policy-agent/opa","modified":"2026-02-04T04:36:32.590498Z","packages":[{"ecosystem":"Go","name":"github.com/open-policy-agent/opa","purl":"pkg:golang/github.com/open-policy-agent/opa","ranges":["<1.4.0"],"fixed":["1.4.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}