Read the docs

Symlink file overwrite in Open Policy Agent via predictable OCI path

Priority LOW 25CWE-377Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
None · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.

Summary

Open Policy Agent versions before 1.20.0 contain an insecure temporary file weakness (CWE-377). When persistence_directory is unset, OPA uses a fixed opa/oci temporary path, so a local user with low privileges can pre-create index.json or oci-layout symlinks there. OPA then overwrites the symlink targets with OCI JSON using its own privileges, which lets the attacker overwrite files.

Written with Claude Haiku 5.5 from the sources below · 2026-11-28

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00206 5th percentileScored 2026-11-30
Fix Fixed opa (open-policy-agent): 1.20.0Red Hat: 2 advisories

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
open-policy-agentopabefore 1.20.01.20.0Patch availableCNA
  • opa Vendoropen-policy-agent Affected before 1.20.0 Fixed in 1.20.0 Patch available CNA

Remediation

Upgrade the opa package to 1.20.0, the fixed version. Red Hat fixes this in Red Hat Hardened Images through RHSA-2026:102263 (released 2026-11-23) and RHSA-2026:103801 (released 2026-11-26).

Written with Claude Haiku 5.5 from the sources below · 2026-11-28

  • Fix · CNA opa (open-policy-agent) Fixed in 1.20.0

Red Hat 2 advisories

  • RHSA-2026:103801 Released 2026-11-26 · Red Hat rating Moderate
    Red Hat Hardened Images RPMs bug fix and enhancement update
    • Red Hat Hardened Images cosign-3.1.6-0.1.hum1@aarch64, cosign-3.1.6-0.1.hum1@s390x, cosign-3.1.6-0.1.hum1@src +1
  • RHSA-2026:102263 Released 2026-11-23 · Red Hat rating Moderate
    Red Hat Hardened Images RPMs Security Update
    • Red Hat Hardened Images trivy-0.76.2-0.2.hum1@aarch64, trivy-0.76.2-0.2.hum1@s390x, trivy-0.76.2-0.2.hum1@src +1

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Hardened ImagesFixed RHSA-2026:102263, RHSA-2026:103801
Not affected: 1 product
  • Red Hat Hardened Images

Timeline

  1. 2026-11-26 Threatist record created from CVE-2026-137570
  2. 2026-11-27 Alias added: GHSA-qvmg-x68q-6ccv
  3. 2026-11-27 Affected versions changed · Red Hat
  4. 2026-11-27 CVSS score added · Red Hat
  5. 2026-11-27 Fix available: RHSA-2026:102263 · Red Hat
  6. 2026-11-27 Fix available: RHSA-2026:103801 · Red Hat
  7. 2026-11-27 Fix available: Red Hat Hardened Images · Red Hat
  8. 2026-11-28 Affected versions changed · Red Hat
  9. 2026-11-30 CISA SSVC decision points changed

References

  • TI-2022-16508 OPA Compiler: Bypass of WithUnsafeBuiltins using `with` keyword to mock functions CVSS 3.1CRITICAL 9.8
  • TI-2022-07681 Array literal misordering in github.com/open-policy-agent/opa CVSS 3.1MEDIUM 6.3
  • TI-2025-29282 OPA server Data API HTTP path injection of Rego CVSS 4.0HIGH 7.4
  • TI-2022-14552 An issue in the AST parser (ast/compile.go) of Open Policy Agent v0.10.2 allows attackers… CVSS 3.1HIGH 7.5
  • TI-2022-11544 An issue in the component ast/parser.go of Open Policy Agent v0.39.0 causes the… CVSS 3.1HIGH 7.5
  • TI-2026-21196 opa-envoy-plugin has an Authorization Bypass via Double-Slash Path Misinterpretation in `input.parsed_path` CVSS 4.0HIGH 7.1
See all 8 →

Sources