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.
https://github.com/open-policy-agent/opa/releases/tag/v1.20.0
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/blob/v1.19.1/v1/plugins/bundle/plugin.go#L457
Published: 2026-11-26
Updated: 2026-11-26
Base Score: 6.1
Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:C
Severity: Medium
Base Score: 6.3
Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
Severity: Medium
Base Score: 5.8
Vector: 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
Severity: Medium
EPSS: 0.00199