cve.bz

CVE-2025-46569 open-policy-agent opa: Code Injection

7.4 highEPSS 0.5%Fix available

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

On this page
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% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 46th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-05-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-94 Improper Control of Generation of Code (Code Injection)
CWE-863 Incorrect Authorization
OWASP Top 10
A01:2025 Broken Access Control, A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • github.com/open-policy-agent/opa/v1/server (Go): fixed in 1.4.0
  • github.com/open-policy-agent/opa/server (Go): fixed in 1.4.0
  • github.com/open-policy-agent/opa (Go): fixed in 1.4.0
  • SUSE, openSUSE, Azure Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2025-46569 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-46569?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-46569?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-46569 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
open-policy-agent opa< 1.4.0

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

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 morecosign2.5.3-150400.3.30.1SUSE-SU-2025:02592-1
openSUSELeap 15.6cosign2.5.3-150400.3.30.1SUSE-SU-2025:02592-1
openSUSELeap 16.0hauler1.3.1-bp160.1.1openSUSE-SU-2025:20160-1
openSUSETumbleweedcosign2.5.3-1.1openSUSE-SU-2025:15355-1
openSUSETumbleweedgovulncheck-vulndb0.0.20250506T153719-1.1openSUSE-SU-2025:15059-1
openSUSETumbleweedhauler1.2.5-1.1openSUSE-SU-2025:15370-1
openSUSETumbleweedopa1.6.0-1.1openSUSE-SU-2025:15253-1
openSUSETumbleweedtrivy0.65.0-2.1openSUSE-SU-2025:15530-1
Azure Linux3opa0.63.0-2AZL-63067

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as an IMPORTANT severity because this flaw allows an attacker to craft a malicious HTTP request path that injects Rego code into the constructed policy query, allowing an attacker to determine query success or failure, and under certain circumstances, produce erroneous policy decision result, injected code can result in a Denial of Service (DoS) attack, impacting the availability of the OPA server.

ProductPackageStateAdvisory
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-validation-rhel9Will not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-46569.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON