AZL-116335: CVE-2026-137570 affecting package opa 0.63.0-7
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.20.0
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments running Open Policy Agent versions before 1.20.0 are affected when persistence_directory is unset, causing OPA to use the fixed OCI store path.
What access does an attacker need?
An attacker needs local access and must be able to pre-create the opa/oci temporary directory with index.json or oci-layout symlinks before OPA writes to that location.
What is the impact of successful exploitation?
OPA can follow the attacker-controlled symlinks and overwrite the linked target files with OCI JSON using OPA's privileges.