Open Policy Agent before 1.20.0 Symlink File Overwrite via Predictable OCI Store Path
- State
- Published
- Severity
- 5.8 Medium
- Published
- Nov 26, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 26, 2026
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.
| Product | Versions |
|---|---|
| opa open-policy-agent | before 1.20.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.8 Medium | VulnCheck | |
| 3.1 | 6.3 Medium | VulnCheck |
Weaknesses
- CWE-377 Insecure Temporary File
References
- https://github.com/open-policy-agent/opa/pull/8853Issue TrackerPatch
- https://github.com/open-policy-agent/opa/commit/4fa5d202a77ca7b69f1cb7fc8936d7efb7ae60eePatch
- opa v1.20.0 Release NotesRelease Notes
- https://github.com/open-policy-agent/opa/blob/v1.19.1/v1/plugins/bundle/plugin.go#L457Technical Details
- VulnCheck Advisory: Open Policy Agent before 1.20.0 Symlink File Overwrite via Predictable OCI Store PathThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.