Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privilege access on OPA host
-
DeliveryPre-create opa/oci path with index.json/oci-layout symlink
-
ExploitWait for OPA OCI bundle store write
-
ExecutionOPA follows symlink, writes with its privileges
-
ImpactTarget 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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
More in Open Policy Agent
View allOpen Policy Agent (OPA) is an open source, general-purpose policy engine. Rated critical severity (CVSS 9.8), this vulne
An issue in the AST parser (ast/compile.go) of Open Policy Agent v0.10.2 allows attackers to cause a Denial of Service (
An issue in the component ast/parser.go of Open Policy Agent v0.39.0 causes the application to incorrectly interpret eve
A SMB force-authentication vulnerability exists in all versions of OPA for Windows prior to v0.68.0. Rated high severity
EUVD-2026-136361
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB