CVE-2025-46569
OPA server Data API HTTP path injection of Rego
Reported by github_m · Published May 1, 2025
github.com/open-policy-agent/opa is fixed in 1.4.0 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/open-policy-agent/opa | Go Modules | 1.4.0 |
| github.com/open-policy-agent/opa/v1/server | Go Modules | 1.4.0 |
| github.com/open-policy-agent/opa/server | Go Modules | 1.4.0 |
| kyverno-fips-1.14 | Chainguard | 1.14.1-r1 |
| kyverno-notation-aws | Chainguard | 1.1-r15 |
| datadog-agent-fips | Chainguard | 7.71.2-r3 |
| cosign-fips | Chainguard | 2.5.0-r2 |
| cosign | Wolfi | 2.5.0-r1 |
| gatekeeper-3.17 | Wolfi | 3.17.2-r10 |
| tfsec | Chainguard | 1.28.14-r1 |
| kyverno-notation-aws | Wolfi | 1.1-r15 |
| kyverno-1.12 | Wolfi | 1.12.7-r13 |
33 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| open-policy-agent | opa | < 1.4.0 |
| chainguard | kyverno-fips-1.14 | 0 |
| github.com | open-policy-agent/opa | 0 |
| chainguard | kyverno-notation-aws | 0 |
| chainguard | datadog-agent-fips | *, 0 |
| chainguard | cosign-fips | 0 |
| wolfi | cosign | 0 |
| wolfi | gatekeeper-3.17 | 0 |
| chainguard | elastic-agent-fips | * |
| chainguard | tfsec | 0 |
| wolfi | kyverno-notation-aws | 0 |
| wolfi | kyverno-1.12 | 0 |
| github.com | open-policy-agent/opa/server | 0 |
| wolfi | kyverno-1.14 | 0 |
| wolfi | zot | * |
| chainguard | dapr-1.14 | 0 |
| chainguard | gatekeeper-fips-3.17 | 0 |
| chainguard | kyverno-notation-aws-fips | 0 |
| chainguard | gatekeeper-fips-3.16 | 0 |
| wolfi | kyverno-1.13 | 0 |
…and 49 more
Timeline
- May 1, 2025 CVE Published
- May 2, 2025 EPSS Score (30 in total, the first dated here)
- Nov 25, 2025 CVE Updated
- Mar 17, 2026 Security Advisory (2 in total, the first dated here)
- Jun 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-46569
vulnetix vdb fixes CVE-2025-46569
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-46569/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/open-policy-agent/opa/security/advisories/GHSA-6m8w-jc87-6cr7 x_refsource_CONFIRM
- https://github.com/open-policy-agent/opa/commit/ad2063247a14711882f18c387a511fc8094aa79c x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-46569 advisory
- https://github.com/advisories/GHSA-6m8w-jc87-6cr7 advisory
- https://github.com/open-policy-agent/opa url
- https://pkg.go.dev/vuln/GO-2025-3660 url