Description
Open Policy Agent before 1.20.0 contains an insecure temporary file vulnerability that allows local users to overwrite files by abusing the fixed OCI store path used when persistence_directory is unset. Attackers can pre-create the opa/oci temp directory with index.json or oci-layout symlinks so OPA overwrites the target files with OCI JSON using its privileges.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| open-policy-agent | opa | < 1.20.0 | 1.20.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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | golang-github-open-policy-agent-opa | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | golang-github-open-policy-agent-opa | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | cosign | 3.1.6-0.1.hum1 | RHSA-2026:103801 |
| Red Hat Hardened Images 1 | trivy | 0.76.2-0.2.hum1 | RHSA-2026:102263 |
Advisories 2
- RHSA-2026:103801 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Dec 2, 2026
- RHSA-2026:102263 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Dec 2, 2026
References
- https://github.com/open-policy-agent/opa/pull/8853 issue-tracking patch
- https://github.com/open-policy-agent/opa/commit/4fa5d202a77ca7b69f1cb7fc8936d7efb7ae60ee patch
- opa v1.20.0 Release Notes release-notes
- https://github.com/open-policy-agent/opa/blob/v1.19.1/v1/plugins/bundle/plugin.go#L457 technical-description
- VulnCheck Advisory: Open Policy Agent before 1.20.0 Symlink File Overwrite via Predictable OCI Store Path third-party-advisory