cve.bz

CVE-2026-137570 Open Policy Agent before 1.20.0 Symlink File Overwrite via Predictable OCI Store Path

5.8 mediumEPSS 0.2%

Medium (5.8) in open-policy-agent opa. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

5.8 medium
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

6.3 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
EPSS
0.2% estimated probability of exploitation activity in the next 30 days; 6th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-11-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-377 Insecure Temporary File deprecated by MITRE
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
Assigned by
VulnCheck (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-137570 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-137570?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-137570?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-2026-137570 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 opabefore 1.20.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian14golang-github-open-policy-agent-opano fix listedDEBIAN-CVE-2026-137570
Ubuntu26.10golang-github-open-policy-agent-opano fix listedUBUNTU-CVE-2026-137570
Red Hathummingbird:1cosign0:3.1.6-0.1.hum1RHSA-2026:103801
Red Hathummingbird:1trivy0:0.76.2-0.2.hum1RHSA-2026:102263
Azure Linux3opano fix listedAZL-116335

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat rates this vulnerability as Moderate because exploitation requires local access to the host or container filesystem where Open Policy Agent executes, and it depends on omitting an explicit bundle persistence path. Although a local attacker sharing the temporary directory could overwrite files writable by the OPA process via pre-created symbolic links, the issue does not allow arbitrary code execution directly or compromise file confidentiality. Furthermore, in standard enterprise and containerized environments, untrusted local users generally do not have write access to shared temporary locations within the OPA execution context.

Red Hat's mitigation

Define an explicit, dedicated persistence directory for bundle storage or isolate the temporary directory environment:

1. Configure an explicit bundle persistence directory:

Create a dedicated storage directory with restricted permissions accessible only by the user running Open Policy Agent:

```

mkdir -p /var/lib/opa/bundle-persistence

chmod 0700 /var/lib/opa/bundle-persistence

chown <opa-user>:<opa-group> /var/lib/opa/bundle-persistence

```

In the OPA configuration file, specify `persistence_directory: /var/lib/opa/bundle-persistence` within the relevant bundle configuration blocks.

2. Isolate temporary files using systemd:

If running OPA as a systemd service, configure temporary directory isolation by adding `PrivateTmp=yes` under the `[Service]` section of the unit file or drop-in configuration.

Warning: Modifying systemd service definitions or OPA configuration files requires restarting the OPA daemon (`systemctl daemon-reload && systemctl restart opa`), which will temporarily disrupt active policy evaluation requests. Ensure the designated directory has sufficient storage space and proper ownership, or bundle initialization will fail.

ProductPackageStateAdvisory
Red Hat Hardened Imagestrivy-main-0.76.2-0.2.hum1Fixed 2026-11-23RHSA-2026:102263
Red Hat Hardened Imagescosign-main-3.1.6-0.1.hum1Fixed 2026-11-26RHSA-2026:103801
Red Hat Hardened Imagesspire1.14Affected
Red Hat Hardened Imagesspire1.15Affected

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-2026-137570.

Attack patterns (CAPEC)

  • CAPEC-149 Explore for Predictable Temporary File Names Severity: Medium
  • CAPEC-155 Screen Temporary Files for Sensitive Information Likelihood: Medium · Severity: Medium

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

References

Check your stackJSON