CVE-2026-137570: Open Policy Agent before 1.20.0 Symlink File Overwrite via Predictable OCI Store Path

Published Nov 26, 2026
·
Updated

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 persistencedirectory 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.

Affected Software

1 affected component
Open Policy Agent Open Policy Agent<1.20.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Open Policy Agent to a version that resolves this vulnerability.

    Fixed in 1.20.0

Event History

Nov 26, 2026
CVE Published
via MITRE·01:13 PM
Data Sourced
via MITRE·01:13 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

A local user who can create or control the fixed opa/oci temporary directory and place symlinks named index.json or oci-layout can exploit it. Exploitation also requires OPA to run with privileges that can write to the symlink targets.

2

When is the vulnerable OCI store path used?

The fixed OCI store path is used when persistence_directory is unset. Configurations that set persistence_directory are not described as using the affected fallback path.

3

What can an attacker overwrite?

The attacker can redirect OPA writes through index.json or oci-layout symlinks, causing OPA to overwrite target files with OCI JSON content using OPA's privileges.

4

What can be done if upgrading is not immediately possible?

Set persistence_directory rather than leaving it unset, and prevent untrusted local users from pre-creating or modifying the opa/oci temporary directory. Review that directory for index.json or oci-layout symlinks before running OPA.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203