Skip to main content

OpenAI Codex CLI CVE-2026-19592

| EUVDEUVD-2026-69396 HIGH
External Control of System or Configuration Setting (CWE-15)
2026-09-01 OAI GHSA-26wp-42v3-96xp
7.3
CVSS 3.1 · Vendor: OAI
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Deliver crafted repository archive with malicious .git/config
  2. Delivery
    Victim extracts archive, preserving .git/config intact
  3. Exploit
    Victim opens repository in Codex CLI or Desktop
  4. Install
    Codex triggers automated Git metadata collection
  5. C2
    Git reads core.fsmonitor from repository-local .git/config
  6. Execute
    Git invokes attacker-controlled fsmonitor helper
  7. Impact
    Attacker code executes with victim's user privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration Configuration hardening
Exploitation Conditions

Three specific conditions must all be met: (1) Codex CLI or Codex Desktop must be used to open or interact with a repository directory; (2) the repository's .git/config must contain a core.fsmonitor entry pointing to an attacker-controlled executable that is accessible on the victim's filesystem (typically bundled within the repository directory itself); (3) the repository must have been delivered with .git/config intact - ordinary git clone from a remote explicitly does NOT preserve the source repository's local .git/config, so cloned repositories are not exploitable. Exploitation is limited to repositories delivered via archive files (zip, tar, direct directory copy), attacker-hosted git servers that serve local config, or physical/network share access. The attacker-supplied executable must also be reachable at its configured path at the moment Codex triggers metadata collection.

Impact

The CVSS 7.3 base score with vector AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H is well-calibrated for this vulnerability: exploitation is local, requires user interaction (opening the repository), and has no scope change, but once those conditions are met the code execution is fully automatic with complete read, write, and delete impact on user-accessible resources. The EPSS score of 0.14% at the 4th percentile accurately reflects the prerequisite friction - an attacker must deliver a repository archive with its .git/config preserved, which standard git clone does not do. The absence from CISA KEV and the lack of identified public exploit code are consistent with this low exploitation probability. The combination of low-EPSS, non-KEV, and a non-trivial delivery constraint positions this as a targeted rather than opportunistic threat; development teams that regularly receive repository archives from external or community sources face meaningfully higher exposure than those that only clone from trusted remotes.

Exploit ScenarioDerived

An attacker packages a repository as a zip or tar archive, including a .git/config that sets core.fsmonitor to a malicious shell script bundled in the repository directory. When the victim extracts the archive and opens the directory in Codex CLI or Codex Desktop, Codex automatically runs Git status commands to collect metadata; Git reads core.fsmonitor from .git/config and invokes the attacker's script with the victim's user privileges, potentially exfiltrating credentials, modifying source files, or establishing persistence. No public exploit code has been identified, but the technique is straightforward for an attacker familiar with Git's local configuration model.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 02, 2026

Arbitrary code execution in OpenAI Codex CLI (Windows, macOS, Linux) and Codex Desktop (Windows, macOS) allows an attacker who can deliver a crafted repository archive to run code with the victim user's full privileges when Codex automatically collects Git repository metadata. The root cause is that Codex's Git metadata collection path did not suppress the repository-local core.fsmonitor configuration, enabling a malicious .git/config to direct Git to invoke an attacker-supplied filesystem-monitor helper outside Codex's command sandbox and without any user-approval prompt. OpenAI has issued a source-level fix via PR #22652 adding -c core.fsmonitor=false to the relevant Git invocations; no public exploit code has been identified at time of analysis.

RemediationAI

Upgrade Codex CLI beyond version 0.130.0 and Codex Desktop beyond version 26.513.40821 (or 26.513.4821.0 for the Microsoft Store package) once OpenAI publishes releases incorporating PR #22652 from https://github.com/openai/codex/pull/22652. The fix passes -c core.fsmonitor=false to all Git metadata collection invocations, preventing the repository-local .git/config from influencing command execution. As an immediate workaround before patching is available, avoid opening repository directories received as archives (zip, tar, direct directory copy) from untrusted or unverified sources, since this is the only delivery mechanism that preserves a malicious .git/config. Developers who must process externally supplied archives should inspect the .git/config of any received repository for a core.fsmonitor key and remove it before opening the repository in Codex. Standard git clone from a remote URL is not a viable attack vector and requires no additional precautions.

Affected VersionsENISA

Codex Desktop 260202.0859 ≤26.513.31313
Codex Desktop 26.304.38 ≤26.513.40821
Codex Desktop (Microsoft Store package) 26.304.38.0 ≤26.513.4821.0
Codex CLI 0.102.0 ≤0.130.0

Affected Packages

euvd codex_cli no fix
euvd codex_desktop no fix
euvd codex_desktop_microsoft_store_package no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Git's core.fsmonitor configuration key designates an external helper program that Git invokes to efficiently determine which files have changed, bypassing full filesystem scans on large repositories. This setting can reside in a repository-local .git/config file and is normally scoped to that repository. OpenAI Codex CLI (implemented in Rust under codex-rs/git-utils) and Codex Desktop automatically invoke Git status commands to collect repository metadata when a user opens or interacts with a project. Prior to the fix, these Git invocations inherited the repository's local configuration verbatim, including any attacker-set core.fsmonitor value. CWE-15 (External Control of System or Configuration Setting) is the accurate root cause classification: a party external to Codex controls a system-level configuration that Codex then acts on without sanitization. Affected CPEs are cpe:2.3:a:openai:codex_cli and cpe:2.3:a:openai:codex_desktop across all supported platforms, plus cpe:2.3:a:openai:codex_desktop_(microsoft_store_package) for the Windows Store distribution. The fix confirmed in PR #22652 adds the flag -c core.fsmonitor=false directly to the git argument list in codex-rs/git-utils/src/info.rs, overriding any repository-local setting.

Know when Codex Cli 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

Vendor (OAI) PRIMARY 7.3 HIGH
AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.3 HIGH

Repository must be locally opened by the user (AV:L, UI:R); once opened, exploitation is automatic with full user-level read/write/delete impact and no scope change.

3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (OAI).

CVSS VectorVendor: OAI

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Sep 02, 2026 - 16:22 NVD
7.3 (HIGH)
CVE Published
Sep 01, 2026 - 17:14 cve.org
HIGH 7.3
CVE Published
Sep 01, 2026 - 17:14 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS automatically collected Git repository metadata without disabling the repository-local core.fsmonitor setting. If a user opens or uses an attacker-prepared repository whose preserved .git/config sets core.fsmonitor to an attacker-controlled filesystem-monitor helper, Git can execute that helper while Codex collects repository metadata. The helper runs outside Codex's command sandbox and without a user-approval prompt, allowing attacker-controlled code to run with the user's privileges. The code can 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 source repository's local .git/config; exploitation requires a repository delivered or copied with that configuration intact.

Executive ViewAI

Why It Matters

OpenAI Codex CLI and Desktop applications are vulnerable to arbitrary code execution when developers open malicious Git repositories. When Codex automatically collects Git repository metadata, a crafted .git/config file can execute arbitrary code with the developer's full system privileges without any user approval prompt. This supply-chain risk threatens development environments and potentially propagates compromised code into downstream projects.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Mitigations include: restrict Codex to internal repositories; implement code review and repository vetting before external repo access; disable Git metadata collection if available in Codex settings; segregate Codex to lower-privilege user accounts or development VMs where feasible; monitor for unexpected process execution from Codex on developer systems.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Low
newer AI developer tool, limited enterprise deployment footprint
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy