# CVE-2026-19591: OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS misclassified certain PowerShell commands as safe be…

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-09-01T17:06:45.647Z
- Modified: 2026-09-02T19:17:16.760Z
- Weaknesses: CWE-150
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- OpenAI Codex CLI: from 0.72.0 up to 0.130.0 (not affected: 0.131.0)
- OpenAI Codex Desktop: from 260202.0859 up to 26.513.31313; from 26.304.38 up to 26.513.40821 (not affected: 26.519.22136; 26.519.21041)
- OpenAI Codex Desktop (Microsoft Store package): from 26.304.38.0 up to 26.513.4821.0 (not affected: 26.519.2081.0)

## References

- <https://github.com/openai/codex/pull/22643>

## Sources

- CVE List: [CVE-2026-19591](https://www.cve.org/CVERecord?id=CVE-2026-19591), CVE Terms of Use, modified 2026-09-02
- NVD: [CVE-2026-19591](https://nvd.nist.gov/vuln/detail/CVE-2026-19591), Public domain, modified 2026-09-02

---

Page: https://cve.day/CVE-2026-19591 · Whole record: https://cve.day/CVE-2026-19591.json · Rebuilt by cve.day 2026-11-25T22:59:35.988Z
