OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
Summary
OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS misclassified certain PowerShell commands as safe because their command-safety parser interpreted PowerShell's stop-parsing token (--%) differently than PowerShell itself. If a user opens an attacker-prepared repository and Codex follows its instructions, Codex can run a file-writing Git command without requesting user approval. On macOS and Linux, exploitation additionally requires separately installed PowerShell Core (pwsh) to be invoked. If filesystem protections permit the write, the command can modify Codex's configuration. If Codex later loads the modified configuration, it can launch an attacker-controlled MCP server and execute code with the user's privileges, allowing it to read, change, or delete files accessible to that account. The approval bypass does not disable filesystem sandboxing; the default filesystem sandbox on macOS and Linux can prevent writes outside permitted locations.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| OpenAI | Codex CLI | 0.72.0 – 0.130.0 | 0.131.0 | Patch available | CNA |
| OpenAI | Codex Desktop | 260202.0859 – 26.513.31313 | 26.519.22136 | Patch available | CNA |
| OpenAI | Codex Desktop | 26.304.38 – 26.513.40821 | 26.519.21041 | Patch available | CNA |
| OpenAI | Codex Desktop (Microsoft Store package) | 26.304.38.0 – 26.513.4821.0 | 26.519.2081.0 | Patch available | CNA |
- Codex CLI VendorOpenAI Affected 0.72.0 – 0.130.0 Fixed in 0.131.0 Patch available CNA
- Codex Desktop VendorOpenAI Affected 260202.0859 – 26.513.31313 Fixed in 26.519.22136 Patch available CNA
- Codex Desktop VendorOpenAI Affected 26.304.38 – 26.513.40821 Fixed in 26.519.21041 Patch available CNA
- Codex Desktop (Microsoft Store package) VendorOpenAI Affected 26.304.38.0 – 26.513.4821.0 Fixed in 26.519.2081.0 Patch available CNA
Remediation
- Fix · CNA Codex CLI (OpenAI) Fixed in 0.131.0
- Fix · CNA Codex Desktop (OpenAI) Fixed in 26.519.22136
- Fix · CNA Codex Desktop (OpenAI) Fixed in 26.519.21041
- Fix · CNA Codex Desktop (Microsoft Store package) (OpenAI) Fixed in 26.519.2081.0
Timeline
- 2026-10-02 Threatist record created from CVE-2026-19591
- 2026-10-03 Alias added: GHSA-2frj-4qr5-m2rf
References
More OpenAI vulnerabilities
- TI-2026-15921 OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS… CVSS 3.1HIGH 7.3
- TI-2025-06388 OpenAI Operator - API Spoofing through Locking Operator on FullScreen CVSS 4.0MEDIUM 6.9
- TI-2026-15922 OpenAI Codex Desktop for Windows and macOS automatically inspected Git metadata and… CVSS 3.1CRITICAL 9.8
- TI-2025-37063 Codex has sandbox bypass due to bug in path configuration logic CVSS 4.0HIGH 8.6
- TI-2026-85640 Argument injection in Codex Desktop for Windows project paths CVSS 3.1HIGH 8.0
- TI-2026-15919 Uncontrolled search path in OpenAI Codex Desktop CVSS 3.1HIGH 7.3
Sources
- CVE-2026-19591 · CVE Program
- CVE-2026-19591 · NVD
- FIRST EPSS
- GHSA-2frj-4qr5-m2rf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences