Skip to main content
EPSS 0.1%top 99%

CVE-2026-19590: CWE-427: Uncontrolled Search Path Element in OpenAI Codex Desktop

0
High
VulnerabilityCVE-2026-19590cvecve-2026-19590cwe-427
Published: 09/01/2026 (09/01/2026, 17:04:43 UTC)
Source: CVE Database V5
Vendor/Project: OpenAI
Product: 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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Affected software

OpenAI

Codex Desktop

Affected versions
>=260202.0859 <=26.513.31313

OpenAI

Codex Desktop

Affected versions
>=26.304.38 <=26.513.40821

OpenAI

Codex Desktop (Microsoft Store package)

Affected versions
>=26.304.38.0 <=26.513.4821.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 13:07:58 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses