{"answers":{"affected":"7 open source packages ship an affected version, including github.com/open-policy-agent/opa, github.com/open-policy-agent/opa/server and github.com/open-policy-agent/opa/v1/server.","exploited":"There is no known exploitation of CVE-2025-46569 in the wild and no public exploit code.","fix":"Upgrade github.com/open-policy-agent/opa to 1.4.0 or later.","what":"CVE-2025-46569 is a high-severity code injection vulnerability in open-policy-agent opa, published on 1 May 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-46569 and fix it if it is affected.\n\nWhat it is: CVE-2025-46569 is a high-severity code injection vulnerability in open-policy-agent opa, published on 1 May 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-46569 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/open-policy-agent/opa (Go): affected all versions; fixed in 1.4.0\n- github.com/open-policy-agent/opa (Go): affected all versions; fixed in 1.4.0\n- github.com/open-policy-agent/opa (Go): affected all versions; fixed in 1.4.0\n- github.com/open-policy-agent/opa/server (Go): affected all versions; fixed in 1.4.0\n- github.com/open-policy-agent/opa/server (Go): affected all versions; fixed in 1.4.0\n- github.com/open-policy-agent/opa/v1/server (Go): affected all versions; fixed in 1.4.0\n- github.com/open-policy-agent/opa/v1/server (Go): affected all versions; fixed in 1.4.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-46569/ (Markdown: https://insights.sbomify.com/CVE-2025-46569/index.md)","id":"CVE-2025-46569","markdown":"https://insights.sbomify.com/CVE-2025-46569/index.md","name":"CVE-2025-46569","record":{"aliases":["AZL-63067","CLEANSTART-2026-OK69185","CLEANSTART-2026-PU21054","ECHO-4d87-77fe-13dc","GHSA-6m8w-jc87-6cr7","GO-2025-3660","MINI-4j67-722g-c77x","MINI-6cgj-gjm6-vrw7","MINI-9wcp-qh5r-r684","MINI-g75w-2fjp-3h65","MINI-jjfq-m9hx-qfjg","MINI-jm7x-f694-v78r","MINI-r8qh-r22g-76pj","MINI-xc26-xc22-vrh5","SUSE-SU-2025:02592-1","openSUSE-SU-2025:15355-1","openSUSE-SU-2025:15370-1","openSUSE-SU-2025:15530-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Open Policy Agent","requires_auth":"low_privilege","summary":"Attackers can inject Rego code via HTTP paths in OPA server, causing denial of service or erroneous policy decisions.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.4,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-863","name":"Incorrect Authorization"}],"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.","ecosystems":["Go","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Basesystem 15 SP7","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","SUSE:Manager Proxy 4.3","SUSE:Manager Server 4.3","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"OPA server Data API HTTP path injection of Rego","id":"CVE-2025-46569","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":23,"n_references":2,"next":{"headline":"vLLM’s Chunk-Based Prefix Caching Vulnerable to Potential Timing Side-Channel","id":"CVE-2025-46570"},"packages":[{"ecosystem":"Go","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/open-policy-agent/opa","purl":null,"source":"GHSA-6m8w-jc87-6cr7"},{"ecosystem":"Go","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/open-policy-agent/opa","purl":"pkg:golang/github.com/open-policy-agent/opa","source":"GHSA-6m8w-jc87-6cr7"},{"ecosystem":"Go","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/open-policy-agent/opa","purl":"pkg:golang/github.com/open-policy-agent/opa","source":"GO-2025-3660"},{"ecosystem":"Go","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/open-policy-agent/opa/server","purl":null,"source":"GHSA-6m8w-jc87-6cr7"},{"ecosystem":"Go","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/open-policy-agent/opa/server","purl":"pkg:golang/github.com/open-policy-agent/opa/server","source":"GHSA-6m8w-jc87-6cr7"},{"ecosystem":"Go","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/open-policy-agent/opa/v1/server","purl":null,"source":"GHSA-6m8w-jc87-6cr7"},{"ecosystem":"Go","fixed":["1.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/open-policy-agent/opa/v1/server","purl":"pkg:golang/github.com/open-policy-agent/opa/v1/server","source":"GHSA-6m8w-jc87-6cr7"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["2.5.3-150400.3.30.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/suse/cosign\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2025:02592-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","fixed":["2.5.3-150400.3.30.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/suse/cosign\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSS","source":"SUSE-SU-2025:02592-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","fixed":["2.5.3-150400.3.30.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/suse/cosign\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-ESPOS","source":"SUSE-SU-2025:02592-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","fixed":["2.5.3-150400.3.30.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/suse/cosign\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-LTSS","source":"SUSE-SU-2025:02592-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["2.5.3-150400.3.30.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/suse/cosign\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2025:02592-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP7","fixed":["2.5.3-150400.3.30.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/suse/cosign\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP7","source":"SUSE-SU-2025:02592-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP4-LTSS","fixed":["2.5.3-150400.3.30.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/suse/cosign\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSS","source":"SUSE-SU-2025:02592-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP5-LTSS","fixed":["2.5.3-150400.3.30.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/suse/cosign\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP5-LTSS","source":"SUSE-SU-2025:02592-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP4","fixed":["2.5.3-150400.3.30.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/suse/cosign\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4","source":"SUSE-SU-2025:02592-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP5","fixed":["2.5.3-150400.3.30.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/suse/cosign\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP5","source":"SUSE-SU-2025:02592-1"},{"ecosystem":"SUSE:Manager Proxy 4.3","fixed":["2.5.3-150400.3.30.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/suse/cosign\u0026distro=SUSE%20Manager%20Proxy%204.3","source":"SUSE-SU-2025:02592-1"},{"ecosystem":"SUSE:Manager Server 4.3","fixed":["2.5.3-150400.3.30.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/suse/cosign\u0026distro=SUSE%20Manager%20Server%204.3","source":"SUSE-SU-2025:02592-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.5.3-150400.3.30.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/opensuse/cosign\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:02592-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.5.3-1.1"],"introduced":["0"],"last_affected":[],"package":"cosign","purl":"pkg:rpm/opensuse/cosign\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15355-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.2.5-1.1"],"introduced":["0"],"last_affected":[],"package":"hauler","purl":"pkg:rpm/opensuse/hauler\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15370-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.65.0-2.1"],"introduced":["0"],"last_affected":[],"package":"trivy","purl":"pkg:rpm/opensuse/trivy\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15530-1"}],"prev":{"headline":"Stirling-PDF Server-Side Request Forgery (SSRF)-Induced Arbitrary File Read Vulnerability","id":"CVE-2025-46568"},"products":["opa"],"published":"2025-05-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-05-02","vendors":["open-policy-agent"]},"summary":"Attackers can inject Rego code via HTTP paths in OPA server, causing denial of service or erroneous policy decisions.","url":"https://insights.sbomify.com/CVE-2025-46569/"}