CVE-2025-46569

High

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.

SeverityHigh
CVSS7.4
Exploit probability—
ProductGithub.com/open-policy-agent/opa/v1/server
PublishedMay 1, 2025
First seenMay 1, 2025

How to fix

Update
  • github.com/open-policy-agent/opa/v1/server1.4.0 or later
  • github.com/open-policy-agent/opa/server1.4.0 or later
  • github.com/open-policy-agent/opa1.4.0 or later

Affected products

ProductAffected versionsFixed in
github.com/open-policy-agent/opa/v1/serverGov < 1.4.01.4.0
github.com/open-policy-agent/opa/serverGov < 1.4.01.4.0
github.com/open-policy-agent/opaGov < 1.4.01.4.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-46569 · Github.com/open-policy-agent/opa/v1/server · Dark Radar