Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts repo with malicious core.hooksPath in .git/config
-
DeliveryUser receives and opens repo in Codex Desktop
-
ExploitCodex triggers automated Git operation (status or index write)
-
ExecutionGit respects core.hooksPath directive
-
PersistMalicious hook executes outside Codex sandbox
-
ImpactAttacker reads, modifies, or deletes files at user privilege level
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
|
| Exploitation Conditions | The victim must open an attacker-prepared repository in Codex Desktop where the repository's |
| Impact | The CVSS 3.1 score of 7.3 reflects the local attack vector (AV:L), user interaction requirement (UI:R), and otherwise low-complexity, full-impact profile (C:H/I:H/A:H) - a calibrated assessment for a flaw that demands the victim actively open a malicious repository. EPSS of 0.13% places this in the 3rd percentile of exploitability probability, and the absence from CISA KEV confirms no known active exploitation at time of analysis. Real-world risk is materially bounded by the delivery prerequisite: a standard |
| Exploit ScenarioDerived | An attacker creates a Git repository with a |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 03, 2026
Arbitrary code execution in OpenAI Codex Desktop for Windows and macOS allows an attacker's Git hooks to run outside the application's command sandbox when a user opens a specially prepared repository. Codex's automated Git operations honored the repository-local core.hooksPath setting in .git/config without sanitizing or overriding it, enabling a malicious hook script to execute with the user's full OS privileges - reading, modifying, or deleting files and accessing other resources. No active exploitation has been identified (EPSS 0.13%, not in CISA KEV); a code-level fix exists in GitHub PR #22843 but a versioned patch release is not independently confirmed at time of analysis.
RemediationAI
Upgrade to a fixed version of Codex Desktop once OpenAI releases a patched build incorporating the changes from GitHub PR #22843; the upstream fix is confirmed via reviewed diff but a tagged release version has not been independently verified at time of analysis - monitor https://github.com/openai/codex/releases for the published version. The fix overrides core.hooksPath to /dev/null (Unix) or NUL (Windows) on every internal Codex Git invocation, preventing repository-configured hook directories from being honored. As an interim measure, avoid opening repositories received from untrusted or unverified sources in Codex Desktop, and inspect .git/config for unexpected core.hooksPath entries before loading any externally sourced repository. Restricting OS-level execute permissions on directories within repository working trees can reduce but not eliminate risk, as the attacker-controlled hook directory may be placed anywhere writable by the user.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenAI Codex Desktop is an AI-powered coding assistant implemented in Rust (codex-rs), running on Windows and macOS, that performs automated Git operations to track repository state - including status checks, index baseline writes, and change detection. The affected mechanism is CWE-427 (Uncontrolled Search Path Element): Codex's internal Git invocations blindly trusted the repository-local core.hooksPath Git configuration directive. Git supports core.hooksPath as a repository-scoped key in .git/config that redirects all hook execution to an arbitrary directory. Because Codex ran Git commands such as git status and index operations without passing -c core.hooksPath=<null>, any repository whose .git/config sets this key to an attacker-controlled path caused Git to execute hook scripts therein - including post-index-change - without any user prompt. CPE identifiers confirm three affected package variants: cpe:2.3:a:openai:codex_desktop:* (standard), cpe:2.3:a:openai:codex_desktop:* (platform-specific), and cpe:2.3:a:openai:codex_desktop_(microsoft_store_package):*. The fix visible in PR #22843 adds -c core.hooksPath=/dev/null (Unix) or -c core.hooksPath=NUL (Windows) to every internal Codex Git invocation, neutralizing repository-configured hook paths system-wide.
Know when Codex Desktop gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
AV:L because exploit fires locally when Codex processes the repo; PR:N because the attacker needs no privileges on the victim's system, only to deliver the malicious repository; UI:R because the victim must actively open it.
Primary rating from Vendor (OAI).
CVSS VectorVendor: OAI
Lifecycle Timeline
3DescriptionCVE.org
OpenAI Codex Desktop for Windows and macOS could execute attacker-controlled Git hooks because automated Git operations trusted the repository's local core.hooksPath setting. If a user opens an attacker-prepared repository whose preserved .git/config points core.hooksPath to an attacker-controlled directory, Codex can run a malicious hook while processing the repository. The hook executes outside Codex's command sandbox, without user approval, and with the user's privileges, allowing it to read, change, or delete the user's files and access other resources available to the user's account. An ordinary Git clone does not preserve the attacker-controlled repository-local configuration required for exploitation.
Zero Day Initiative Advisories
Executive ViewAI
OpenAI Codex Desktop contains a critical code execution vulnerability affecting developers on Windows and macOS that allows arbitrary system commands to run when opening a malicious Git repository, potentially compromising developer machines and access to sensitive intellectual property. The vulnerability exploits improper handling of Git hook configurations, creating a supply-chain risk vector that could enable persistent access to development environments and source code repositories. With no vendor patch currently released, organizations must immediately implement protective controls to prevent exploitation.
Restrict Codex Git integration to pre-approved internal repositories only; require administrative review and approval before opening external projects; disable automatic Git operations and mandate manual verification of repository configurations; implement OS-level application sandboxing to limit hook execution scope; consider temporary use of alternative IDE Git integrations for external repository work; maintain audit logs of all repository access through Codex.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
More in Codex Desktop
View allArbitrary code execution in OpenAI Codex Desktop (Windows and macOS, including the Microsoft Store package) occurs when
OpenAI Codex CLI and Codex Desktop's PowerShell command-safety parser failed to recognize PowerShell's stop-parsing toke
Arbitrary code execution in OpenAI Codex CLI (Windows, macOS, Linux) and Codex Desktop (Windows, macOS) allows an attack
EUVD-2026-69393
GHSA-433v-pqvh-w4gj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB