Open Policy Agent OPA file overwrite via symlink in OCI store
- Exploited
- No known exploitation
- Fix
- Fixed in 1.20.0
- Who is exposed
- Not reported
Summary
Open Policy Agent (opa) before the fixed release contains an insecure temporary file flaw in the OCI store path used when persistence_directory is not set. A local user with low privileges can place symlinks in that predictable directory so OPA overwrites arbitrary target files with OCI JSON, using OPA's own privileges.
Written by a model
Original 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.
What to do
Upgrade to a fixed version: 1.20.0.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-137570 (Open Policy Agent before 1.20.0 Symlink File Overwrite via Predictable OCI Store Path), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-137570 (entry last updated 2026-11-26):
Affected:
- Go package github.com/open-policy-agent/opa: fixed in 1.20.0
Fixed versions: 1.20.0.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-137570 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-137570 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (Go): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/open-policy-agent/opa/pull/8853
- https://github.com/open-policy-agent/opa/commit/4fa5d202a77ca7b69f1cb7fc8936d7efb7ae60ee
- https://github.com/open-policy-agent/opa/releases/tag/v1.20.0
- https://github.com/open-policy-agent/opa/blob/v1.19.1/v1/plugins/bundle/plugin.go#L457
- https://www.vulncheck.com/advisories/open-policy-agent-before-1.20.0-symlink-file-overwrite-via-predictable-oci-store-path
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-137570
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-137570"}.Affected versions
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure?/25Unknown. No advisory context yet
- Reach10/20Affects Go packages
- Severity5.8/10CVSS 5.8
- No patch0/5No signal
What would change the score
- Would score about 71 if added to CISA KEV
- Would score about 66 if CISA's SSVC rates exploitation active
- Would score about 38 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
Evidence 7
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-137570 |
| Record | NVD · CVE-2026-137570 |
| Other links 5 | |
| Patch | GitHub · open-policy-agent/opa · Pull request #8853 |
| Patch | GitHub · open-policy-agent/opa · Commit 4fa5d202 |
| Repository | GitHub · open-policy-agent/opa · Release v1.20.0 |
| Repository | GitHub · open-policy-agent/opa · v1/plugins/bundle/plugin.go · L457 |
| Link | vulncheck.com · advisories/open-policy-agent-before-1.20.0-symlink-file-overwrite-via-predictable-oci-store-path |
Questions about CVE-2026-137570
Is CVE-2026-137570 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-137570?
github.com/open-policy-agent/opa (Go): before 1.20.0.
Source: cve.now feed data
How do I fix CVE-2026-137570?
Upgrade to a fixed version: 1.20.0.
Source: cve.now feed data
Related
- CVE-2022-33082An issue in the AST parser (ast/compile.go) of Open Policy Agent v0.10.2 allows attackers to cause a Denial of Service (DoS) via a crafted…
- CVE-2022-28946An issue in the component ast/parser.go of Open Policy Agent v0.39.0 causes the application to incorrectly interpret every expression…
- CVE-2025-46569OPA server Data API HTTP path injection of Rego
- CVE-2022-36085OPA Compiler: Bypass of WithUnsafeBuiltins using `with` keyword to mock functions
- CVE-2022-23628Array literal misordering in github.com/open-policy-agent/opa
- CVE-2024-8260OPA SMB Force-Authentication
No corrections so far. Something wrong on this page? Report an error.