CVE-2026-137570

Open Policy Agent before 1.20.0 Symlink File Overwrite via Predictable OCI Store Path

Published Nov 26, 2026 CVSS 4.0 · 5.8 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

An insecure temporary file mechanism in Open Policy Agent causes the tool to use a fixed path within its OCI store directory when the persistence_directory is not set. If a local user sets up symlinks or a pre‑created index.json in this fixed path, the agent will overwrite target files with its OCI JSON content at run time. The flawed logic allows a local attacker to replace arbitrary files—including executables or configuration files—potentially enabling further compromise or the execution of malicious code.

Affected Systems

The vulnerability affects the Open Policy Agent (OPA) product prior to version 1.20.0. No other vendors or products are listed as impacted. The issue is tied specifically to the opa/oci temporary directory structure used by OPA before the release of v1.20.0.

Risk and Exploitability

The CVSS score of 5.8 indicates a moderate severity. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting limited active exploitation. Attackers must have local user access to configure the suspicious directories, and the attack vector is local. Given the moderate score and the requirement for local setup, the likelihood of exploitation is moderate but not trivial. If exploited, the attacker could overwrite critical files, potentially leading to privilege escalation or denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Open Policy Agent to version 1.20.0 or later. This release removes the insecure default temporary path behavior.
  • Configure the persistence_directory setting to a secure, non‑default location so the agent does not rely on the fixed OCI store path. This mitigates the overwrite possibility when the user does not control the directory.
  • Audit the opa/oci temporary directory for unexpected files or symlinks and remove any entries that could be used by an attacker to force file overwrites.

Generated by OpenCVE AI on November 26, 2026 at 14:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title Open Policy Agent before 1.20.0 Symlink File Overwrite via Predictable OCI Store Path
First Time appeared Openpolicyagent
Openpolicyagent open Policy Agent
Weaknesses CWE-377
CPEs cpe:2.3:a:openpolicyagent:open_policy_agent:*:*:*:*:*:*:*:*
Vendors & Products Openpolicyagent
Openpolicyagent open Policy Agent
References
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H'}

cvssV4_0

{'score': 5.8, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 26, 2026, 1:13 PM
Reserved
Nov 26, 2026, 12:50 PM
Status
Received
Published
Nov 26, 2026, 2:17 PM
Modified
Nov 26, 2026, 2:17 PM