Skip to main content

Open Policy Agent EUVDEUVD-2026-136361

| CVE-2026-137570 MEDIUM
Insecure Temporary File (CWE-377)
2026-11-26 VulnCheck
5.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local low-privilege access on OPA host
  2. Delivery
    Pre-create opa/oci path with index.json/oci-layout symlink
  3. Exploit
    Wait for OPA OCI bundle store write
  4. Execution
    OPA follows symlink, writes with its privileges
  5. Impact
    Target file overwritten (integrity/availability loss)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Secure temp file creation
Exploitation Conditions

Requires an attacker with local, low-privileged access on the same host as OPA, where OPA is configured to download bundles from an OCI registry and persistence_directory is unset - forcing use of the fixed, predictable opa/oci store path. The attacker must pre-create that directory and plant index.json or oci-layout symlinks before OPA writes to the store, so OPA follows them and overwrites the symlink target using its own privileges. Limiting factors: local-only vector (AV:L), prior low-privilege foothold needed (PR:L), reliance on the OCI downloader feature with persistence_directory unset, and a timing/pre-creation window combined with high attack complexity (AT:P, AC:H), which materially narrow realistic exploitation to shared or multi-user hosts.

Impact

This is a moderate, locally-scoped integrity/availability issue, not a widespread emergency. The CVSS 4.0 base score is 5.8 (medium) with a vector of AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H: exploitation requires local access, already-held low privileges (PR:L), high attack complexity (AC:H), and a present attack requirement (AT:P) - the attacker must plant symlinks in the predictable opa/oci path before OPA writes, a condition the attacker does not fully control. Impact is integrity and availability (VI:H/VA:H) with no confidentiality loss (VC:N), consistent with an arbitrary-file-overwrite primitive rather than data theft. There is no CISA KEV listing and no EPSS score was provided, so there is no signal of active or widespread exploitation; exploitation status is no public exploit identified at time of analysis (the references are the fixing PR, commit, release, and a VulnCheck advisory describing the mechanism - none is verified working exploit code). The vuln.today decision label is this_month, indicating a plan-and-patch priority rather than act_now/emergency. Net: a real but conditional local privilege-abuse/file-overwrite flaw that matters chiefly on shared or multi-tenant hosts where OPA runs with elevated privileges and OCI bundles are used with persistence_directory unset; patch within the normal maintenance window.

Exploit ScenarioDerived

On a host where OPA pulls bundles from an OCI registry with persistence_directory unset, a local low-privileged user pre-creates the fixed opa/oci temporary directory and plants an index.json or oci-layout symlink pointing at a sensitive file. When OPA next writes its OCI store, it follows the symlink and overwrites the target with OCI JSON using OPA's (potentially higher) privileges, corrupting or destroying the file. No public exploit code is identified; a VulnCheck advisory and the fixing pull request describe the mechanism, and exploitation depends on high complexity (AC:H) plus winning the pre-creation/timing window (AT:P).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 26, 2026

Open Policy Agent releases before 1.20.0 use a fixed, predictable OCI bundle store path (opa/oci) whenever persistence_directory is unset, letting a local low-privileged user pre-create that directory and plant index.json or oci-layout symlinks so OPA follows them and overwrites the symlink targets with OCI JSON under its own privileges. The result is file integrity and availability loss on the OPA host - arbitrary files writable by the OPA process can be clobbered - with no confidentiality impact, and exploitation requires local access, a pre-existing low-privilege foothold, the OCI bundle downloader enabled with persistence_directory unset, and winning a pre-creation/timing window (high attack complexity). No public exploit code or in-the-wild exploitation is identified in the available data; the issue was reported by VulnCheck and rated moderate, with vendor patches available in 1.20.0.

RemediationAI

Vendor-released patch: Open Policy Agent 1.20.0 (https://github.com/open-policy-agent/opa/releases/tag/v1.20.0), delivered through PR https://github.com/open-policy-agent/opa/pull/8853 and commit https://github.com/open-policy-agent/opa/commit/4fa5d202a77ca7b69f1cb7fc8936d7efb7ae60ee, which switches the OCI store to a randomly named os.MkdirTemp("opa-oci-*") directory and removes it on stop. Until upgrading, the practical compensating control is to configure persistence_directory explicitly to a root- or OPA-owned path that unprivileged local users cannot create or write (for example a subdirectory of /var/lib/opa with restrictive ownership), so the predictable opa/oci name under an attacker-writable location is never used; the trade-off is that the store persists across restarts and must be managed and cleaned by the operator instead of being removed automatically. Where the OCI bundle downloader is not needed, disabling that bundle downloader configuration removes the attack surface entirely, at the cost of no longer receiving bundles from OCI registries. On multi-user or shared hosts, restricting who can log in alongside the OPA process and ensuring the OPA working/temp parent directory is not group- or world-writable reduces the pre-creation window this issue depends on.

Affected VersionsENISA

opa 0 <1.20.0

Affected Packages

euvd opa fix: 1.20.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Open Policy Agent's bundle plugin can pull policy bundles from OCI registries through the OCI downloader (v1/download/oci_download.go), which materializes an on-disk OCI layout (index.json, oci-layout, blobs) before reading it into the local store. This is CWE-377 (insecure temporary file): when no persistence_directory is configured, the downloader used a fixed, world-predictable store location under the opa/oci path rather than a randomized directory. Because the path is guessable and the directory can be created by an unprivileged local user ahead of OPA, an attacker can place index.json or oci-layout symlinks there; when OPA subsequently writes the OCI JSON files it follows those links and truncates/overwrites whatever the symlink points at, using the privileges of the OPA process. The upstream fix in PR 8853 replaces the fixed path with os.MkdirTemp("", "opa-oci-*") so the store directory is uniquely generated, tracks whether the path is temporary via a localStoreIsTemp flag, and cleans it up on stop; the same change tightens downloader lifecycle handling with a stateMtx, stopOnce, and a trigger wait group so the temporary store is removed only after in-flight triggers finish. Note that the CVSS 4.0 vector's AC:H/AT:P express the pre-creation and timing window rather than any distinct trigger beyond the symlink pre-placement described in the sources.

Know when Open Policy Agent gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 6.3 MEDIUM

Local config-dependent flaw needing persistence_directory unset and a won symlink pre-creation race, so AV:L/AC:H; local low-priv user gives PR:L; file overwrite yields I:H/A:H with no confidentiality impact.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 6.3 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
popular cloud-native policy engine; vulnerable unset-persistence OCI config is narrower
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy