CVE-2026-19591OpenAI Codex CLI vulnerability
CVSS score
8.8
High
CVSS 3.1 from 134c704f-9b21-4f2e-91b3-4a467353bcc0
Exploit probability (EPSS)
0.56%
0.56% chance of exploitation in the next 30 days, higher than 47.4% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
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.
Source: NVD · CNA: 8f4f43ab-ba69-4d92-aa1d-d772184d6fb7
How to fix it, step by step
Check whether you're affected
Find every system running OpenAI Codex CLI, OpenAI Codex Desktop (Microsoft Store Package) and compare its version with the affected versions.
Watch for an official fix
No fix or advisory is listed in the official record yet. Follow the vendor's security announcements; this page updates when one is published.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| OpenAI Codex CLI | ≥ 0.72.0, ≤ 0.130.0 |
| OpenAI Codex Desktop | ≥ 260202.0859, ≤ 26.513.31313 · ≥ 26.304.38, ≤ 26.513.40821 |
| OpenAI Codex Desktop (Microsoft Store Package) | ≥ 26.304.38.0, ≤ 26.513.4821.0 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-19591 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.6% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-19591?
CVE-2026-19591 has a CVSS 3.1 base score of 8.8 (high).
Which versions are affected?
OpenAI Codex CLI (≥ 0.72.0, ≤ 0.130.0), OpenAI Codex Desktop (≥ 260202.0859, ≤ 26.513.31313; ≥ 26.304.38, ≤ 26.513.40821), OpenAI Codex Desktop (Microsoft Store Package) (≥ 26.304.38.0, ≤ 26.513.4821.0)
Is there a patch for CVE-2026-19591?
No patch is linked in the official record yet. Watch the vendor's security advisories.
References
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.