ZeroHour
ZDI Published Advisoriespublished ()ingested 1
Part of a story covered by 4 sources: “ZDI publishes four CVSS 7.8 OpenAI Codex remote code execution vulnerabilities (CVE-2026-19590 through CVE-2026-19593) demonstrated at Pwn2Own” — merged summary and timeline →

ZDI-26-649: (Pwn2Own) OpenAI Codex Improper Neutralization of Control Sequences Remote Code Execution Vulnerability

mediumVulnerabilityimportance 45CVE-2026-19591
AI summary · glm-5.3-flash

ZDI published advisory ZDI-26-649 for a CVSS 7.8 remote code execution flaw (CVE-2026-19591) in OpenAI Codex, demonstrated at Pwn2Own.

The Zero Day Initiative published advisory ZDI-26-649 describing a remote code execution vulnerability in OpenAI Codex, tracked as CVE-2026-19591 with a CVSS 7.8 score. The flaw involves improper neutralization of control sequences. Exploitation requires user interaction, as the target must open a malicious folder. The bug was demonstrated at Pwn2Own and disclosed through ZDI.

  • Improper neutralization of control sequences in OpenAI Codex allows remote arbitrary code execution.
  • CVSS 7.8; exploitation requires the target to open a malicious folder.
  • Pwn2Own result published by ZDI; no in-the-wild exploitation reported.
VendorsOpenAI
ProductsCodex
OrganizationsZero Day Initiative

Vulnerabilities mentionedAll →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
CVE-2026-19591
PowerShell parsing flaw enables approval-bypass RCE in OpenAI Codex CLI/Desktop

OpenAI Codex CLI (Windows, macOS, Linux) and Codex Desktop (Windows, macOS) misclassify certain PowerShell commands as safe because the command-safety parser handles PowerShell's stop-parsing token (--%) differently from PowerShell itself (CWE-150, improper neutralization of control sequences). An attacker triggers this by preparing a repository whose instructions cause Codex to run a file-writing Git command through PowerShell without the usual user-approval prompt; 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, and when Codex later loads the modified configuration, it launches an attacker-controlled MCP server, giving the attacker code execution with the user's privileges and the ability to read, change, or delete files accessible to that account. The approval bypass does not disable filesystem sandboxing, so the default sandbox on macOS and Linux can prevent writes outside permitted locations and limit the attack. No public PoC or in-the-wild exploitation is currently known; the flaw was demonstrated at Pwn2Own (ZDI-26-649) and carries a low 30-day exploitation probability (EPSS 0.3%).

Do: Update Codex CLI and Codex Desktop to the latest patched release (fixed version numbers are not specified in the available data). Until patched, avoid opening untrusted repositories with Codex and review Codex configuration for unexpected or unapproved MCP server entries; macOS and Linux users should note that exploitation requires locally installed PowerShell Core (pwsh) and that the default filesystem sandbox may already block the configuration write.

8.8<1%
  • OpenAI Codex CLI (Windows, macOS, Linux)
  • OpenAI Codex Desktop (Windows, macOS)
large≈100,000–1,000,000 developer installations (estimate; no install counts in source data)
Full article

This vulnerability allows remote attackers to execute arbitrary code on affected installations of OpenAI Codex. User interaction is required to exploit this vulnerability in that the target must open a malicious folder. The ZDI has assigned a CVSS rating of 7.8. The following CVEs are assigned: CVE-2026-19591.

This source does not provide full text. Read it at zerodayinitiative.com.