CVE-2026-19591
JSON

8.8high

OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS misclassified certain PowerShell commands as safe be…

Severity
8.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.30% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
OAI

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.

Affected

Product or packageVersionsReported by
OpenAI Codex CLIfrom 0.72.0 up to 0.130.0
Not affected: 0.131.0
CVE List
OpenAI Codex Desktopfrom 260202.0859 up to 26.513.31313, from 26.304.38 up to 26.513.40821
Not affected: 26.519.22136, 26.519.21041
CVE List
OpenAI Codex Desktop (Microsoft Store package)from 26.304.38.0 up to 26.513.4821.0
Not affected: 26.519.2081.0
CVE List

Classification

CWE-150

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-19591 changed 2026-09-02CVE Terms of Use
NVDCVE-2026-19591 changed 2026-09-02Public domain