CVE-2025-46569: open-policy-agent opa Code Injection
Vulnerability summary
CVE-2025-46569 is a high (CVSS 7.4) Code Injection vulnerability in open-policy-agent opa. EPSS estimates a 0.53% chance of exploitation in the next 30 days, higher than 43.7% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 4 · Related 31Timeline
- 01-05-2025PublishedVulnerability first disclosed.
- 02-05-2025Last modifiedVulnerability information updated.
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 metrics
5 scores · 5 sources · 1 version- OSV · WolfiEcosystem advisory · calculated7.4HighCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:H/SC:H/SI:H/SA:H
- OSV · GoEcosystem advisory · calculated7.4HighCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:H/SC:H/SI:H/SA:H
- OSV · ChainguardEcosystem advisory · calculated7.4HighCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:H/SC:H/SI:H/SA:H
- NVDNIST7.4HighCVSS: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
EPSS trend
Probability
0.53%
Chance of exploitation in the next 30 days
Percentile
44%
Versus all other CVEs
30-day change
+0.02 pp
From 0.51% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of Code ('Code Injection')The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- CWE-863Incorrect AuthorizationThe product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.
Affected systems
Chainguard55 products
- conftest< 0.59.0-r1
- conftest-fips< 0.59.0-r1
- cosign< 2.5.0-r1
- cosign-fips< 2.5.0-r2
- dapr-1.14< 1.14.5-r3
Wolfi19 products
- conftest< 0.59.0-r1
- cosign< 2.5.0-r1
- kots< 1.124.16-r1
- kots-compat< 1.124.16-r1
- kots-symlink-compat< 1.124.16-r1
Suse12 products
- cosign&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 2.5.3-150400.3.30.1
- cosign&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 2.5.3-150400.3.30.1
- cosign&distro=SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS< 2.5.3-150400.3.30.1
- cosign&distro=SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS< 2.5.3-150400.3.30.1
- cosign&distro=SUSE Linux Enterprise Module for Basesystem 15 SP6< 2.5.3-150400.3.30.1
Opensuse4 products
- cosign&distro=openSUSE Leap 15.6< 2.5.3-150400.3.30.1
- cosign&distro=openSUSE Tumbleweed< 2.5.3-1.1
- hauler&distro=openSUSE Tumbleweed< 1.2.5-1.1
- trivy&distro=openSUSE Tumbleweed< 0.65.0-2.1
Github.com/open-policy-agent1 product
- opa< 1.4.0
Github.com/open-policy-agent/opa1 product
- server< 1.4.0
Github.com/open-policy-agent/opa/v11 product
- server< 1.4.0
Open-policy-agent1 product
- opa< 1.4.0
8 vendors · 94 products
References
9 links- github.com/open-policy-agent/opa/security/advisories/GHSA-6m8w-jc87-6cr7X Refsource CONFIRMAdvisoryWEB
- github.com/open-policy-agent/opa/commit/ad2063247a14711882f18c387a511fc8094aa79cX Refsource MISCFIXWEB