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.
References
History

Thu, 03 Sep 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Openai
Openai codex Cli
Openai codex Desktop
Openai codex Desktop (microsoft Store Package)
Vendors & Products Openai
Openai codex Cli
Openai codex Desktop
Openai codex Desktop (microsoft Store Package)

Thu, 03 Sep 2026 14:00:00 +0000

Type Values Removed Values Added
Title Codex Bypass of PowerShell Stop‑Parsing Token Leading to Local Code Execution

Thu, 03 Sep 2026 08:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 02 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Wed, 02 Sep 2026 00:00:00 +0000

Type Values Removed Values Added
Title Codex Bypass of PowerShell Stop‑Parsing Token Leading to Local Code Execution

Tue, 01 Sep 2026 22:00:00 +0000

Type Values Removed Values Added
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.
Weaknesses CWE-150
References

cve-icon MITRE

Status: PUBLISHED

Assigner: OAI

Published:

Updated: 2026-09-02T18:34:42.260Z

Reserved: 2026-08-12T03:54:33.704Z

Link: CVE-2026-19591

cve-icon Vulnrichment

Updated: 2026-09-02T18:34:29.096Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-01T18:17:40.260

Modified: 2026-09-02T19:17:16.760

Link: CVE-2026-19591

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T16:27:41Z