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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| open-policy-agent | opa | < 1.4.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | cosign | 2.5.3-150400.3.30.1 | SUSE-SU-2025:02592-1 |
| SLES 15 SP6 | cosign | 2.5.3-150400.3.30.1 | SUSE-SU-2025:02592-1 |
| SLES 15 SP5 | cosign | 2.5.3-150400.3.30.1 | SUSE-SU-2025:02592-1 |
| SLES 15 SP4 | cosign | 2.5.3-150400.3.30.1 | SUSE-SU-2025:02592-1 |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP5 | cosign | 2.5.3-150400.3.30.1 | SUSE-SU-2025:02592-1 |
| SLES for SAP 15 SP4 | cosign | 2.5.3-150400.3.30.1 | SUSE-SU-2025:02592-1 |
| SLE HPC 15 SP5 | cosign | 2.5.3-150400.3.30.1 | SUSE-SU-2025:02592-1 |
| SLE HPC 15 SP4 | cosign | 2.5.3-150400.3.30.1 | SUSE-SU-2025:02592-1 |
| SUSE Manager Server 4.3 | cosign | 2.5.3-150400.3.30.1 | SUSE-SU-2025:02592-1 |
| SUSE Manager Proxy 4.3 | cosign | 2.5.3-150400.3.30.1 | SUSE-SU-2025:02592-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | cosign | 2.5.3-1.1 | openSUSE-SU-2025:15355-1 |
| openSUSE Tumbleweed | govulncheck-vulndb | 0.0.20250506T153719-1.1 | openSUSE-SU-2025:15059-1 |
| openSUSE Tumbleweed | hauler | 1.2.5-1.1 | openSUSE-SU-2025:15370-1 |
| openSUSE Tumbleweed | opa | 1.6.0-1.1 | openSUSE-SU-2025:15253-1 |
| openSUSE Tumbleweed | trivy | 0.65.0-2.1 | openSUSE-SU-2025:15530-1 |
| openSUSE Leap 16.0 | hauler | 1.3.1-bp160.1.1 | openSUSE-SU-2025:20160-1 |
| openSUSE Leap 15.6 | cosign | 2.5.3-150400.3.30.1 | SUSE-SU-2025:02592-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | opa | 0.63.0-2 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | conftest | 0.59.0-r1 | — |
| Wolfi rolling | cosign | 2.5.0-r1 | — |
| Wolfi rolling | kots +2 | 1.124.16-r1 | — |
| Wolfi rolling | kyverno-notation-aws +1 | 1.1-r15 | — |
| Wolfi rolling | policy-controller +1 | 0.12.1-r1 | — |
| Wolfi rolling | spire-agent +2 | 1.12.0-r3 | — |
| Wolfi rolling | tfsec | 1.28.14-r1 | — |
| Wolfi rolling | trivy | 0.62.1-r0 | — |
| Wolfi rolling | witness | 0.9.1-r1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/open-policy-agent/opa | < 1.4.0 | 1.4.0 | GHSA-6m8w-jc87-6cr7 |
| Go | github.com/open-policy-agent/opa/server | < 1.4.0 | 1.4.0 | GHSA-6m8w-jc87-6cr7 |
| Go | github.com/open-policy-agent/opa/v1/server | < 1.4.0 | 1.4.0 | GHSA-6m8w-jc87-6cr7 |
Advisories 7
- openSUSE-SU-2025:20160-1 Security update for hauler SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15530-1 trivy-0.65.0-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15370-1 hauler-1.2.5-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15355-1 cosign-2.5.3-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15253-1 opa-1.6.0-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15059-1 govulncheck-vulndb-0.0.20250506T153719-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:02592-1 Security update for cosign SUSE / openSUSE Security Updates · Mar 23, 2026