Impact
OpenAI Codex Desktop for Windows and macOS allows a malicious user to execute arbitrary code through attacker‑controlled Git hooks. The application honors the repository’s local core.hooksPath configuration without additional sandboxing. A repository that preserves a .git/config file pointing core.hooksPath to an attacker‑controlled directory can cause Codex to run a hook with the user’s privileges, enabling the attacker to read, modify, or delete personal files and access local resources. The weakness is an improper use of system‑level paths, classified as CWE‑427.
Affected Systems
The flaw affects all versions of OpenAI Codex Desktop before application version 26.519.22136 on macOS and before 26.519.21041 on Windows, including the Microsoft Store package version 26.519.2081.0. Any installation within these ranges is vulnerable.
Risk and Exploitability
The CVSS score of 7.3 reflects a high severity due to the potential for full user‑privilege code execution. The EPSS score of < 1 % indicates a low probability of exploitation at present, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires delivery of a crafted repository archive or a copied repository directory that retains the malicious .git/config. The attack is local and requires the victim to open the repository, but the payload runs outside Codex’s command sandbox, making the impact system‑wide.
OpenCVE Enrichment