Technical impact
An insecure temporary file mechanism in Open Policy Agent causes the tool to use a fixed path within its OCI store directory when the persistence_directory is not set. If a local user sets up symlinks or a pre‑created index.json in this fixed path, the agent will overwrite target files with its OCI JSON content at run time. The flawed logic allows a local attacker to replace arbitrary files—including executables or configuration files—potentially enabling further compromise or the execution of malicious code.
Affected Systems
The vulnerability affects the Open Policy Agent (OPA) product prior to version 1.20.0. No other vendors or products are listed as impacted. The issue is tied specifically to the opa/oci temporary directory structure used by OPA before the release of v1.20.0.
Risk and Exploitability
The CVSS score of 5.8 indicates a moderate severity. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting limited active exploitation. Attackers must have local user access to configure the suspicious directories, and the attack vector is local. Given the moderate score and the requirement for local setup, the likelihood of exploitation is moderate but not trivial. If exploited, the attacker could overwrite critical files, potentially leading to privilege escalation or denial of service.