CVE-2026-19590: CWE-427: Uncontrolled Search Path Element in OpenAI Codex Desktop
Description
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.
CVSS v3.1
Score 7.3high
Affected software
OpenAI
Codex Desktop
OpenAI
Codex Desktop
OpenAI
Codex Desktop (Microsoft Store package)
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-19590 is an uncontrolled search path element vulnerability (CWE-427) in OpenAI Codex Desktop. The product trusts the local Git repository's core.hooksPath setting, which can be attacker-controlled if the repository's .git/config is preserved. When a user opens such a repository, Codex Desktop executes malicious Git hooks outside its command sandbox, with the user's privileges and without user consent. This can lead to arbitrary code execution affecting confidentiality, integrity, and availability of user data and resources. The vulnerability affects version =260202.0859 of Codex Desktop on Windows and macOS. There is no vendor advisory or patch information available yet.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code with the user's privileges without user approval. This can lead to full compromise of user files and resources accessible by the user account, including reading, modifying, or deleting data. The vulnerability impacts confidentiality, integrity, and availability of the user's environment. However, exploitation requires opening a specially crafted repository that preserves the malicious core.hooksPath configuration, which is not preserved by a standard Git clone operation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid opening repositories from untrusted sources that may contain malicious .git/config files with altered core.hooksPath settings. Consider verifying or resetting Git hook configurations before opening repositories in Codex Desktop.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- OAI
- Date Reserved
- 2026-08-12T03:54:29.956Z
- State
- PUBLISHED
Threat ID: 6a9709e5acd9273b49fc60bb
Added to database: 09/01/2026, 17:22:45 UTC
Last enriched: 09/07/2026, 13:07:58 UTC
Last updated: 10/17/2026, 06:48:16 UTC
Views: 76
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.