VDB

CVE-2025-46569

CVE-2025-46569 PUBLISHED CVSS 7.4 HIGH

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.

PackageEcosystemFixed in
github.com/open-policy-agent/opaGo Modules1.4.0
github.com/open-policy-agent/opa/v1/serverGo Modules1.4.0
github.com/open-policy-agent/opa/serverGo Modules1.4.0
kyverno-fips-1.14Chainguard1.14.1-r1
kyverno-notation-awsChainguard1.1-r15
datadog-agent-fipsChainguard7.71.2-r3
cosign-fipsChainguard2.5.0-r2
cosignWolfi2.5.0-r1
gatekeeper-3.17Wolfi3.17.2-r10
tfsecChainguard1.28.14-r1
kyverno-notation-awsWolfi1.1-r15
kyverno-1.12Wolfi1.12.7-r13

33 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
7.4
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

Affected products

VendorProductVersions
open-policy-agentopa< 1.4.0
chainguardkyverno-fips-1.140
github.comopen-policy-agent/opa0
chainguardkyverno-notation-aws0
chainguarddatadog-agent-fips*, 0
chainguardcosign-fips0
wolficosign0
wolfigatekeeper-3.170
chainguardelastic-agent-fips*
chainguardtfsec0
wolfikyverno-notation-aws0
wolfikyverno-1.120
github.comopen-policy-agent/opa/server0
wolfikyverno-1.140
wolfizot*
chainguarddapr-1.140
chainguardgatekeeper-fips-3.170
chainguardkyverno-notation-aws-fips0
chainguardgatekeeper-fips-3.160
wolfikyverno-1.130

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›