CVE-2026-19591

Summary

CVECVE-2026-19591
StatePUBLISHED
AssignerOAI
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-09-01 18:17:40 UTC
Updated2026-09-02 19:17:16 UTC
DescriptionOpenAI 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.

Risk And Classification

Primary CVSS: v3.1 8.8 HIGH from ADP

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

EPSS: 0.003050000 probability, percentile 0.228950000 (date 2026-09-06)

Problem Types: CWE-150 | CWE-150 CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences


VersionSourceTypeScoreSeverityVector
3.1ADPDECLARED8.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary8.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA OpenAI Codex CLI affected 0.72.0 0.130.0 semver Windows, macOS, Linux
CNA OpenAI Codex CLI unaffected 0.131.0 Windows, macOS, Linux
CNA OpenAI Codex Desktop affected 260202.0859 26.513.31313 custom macOS
CNA OpenAI Codex Desktop unaffected 26.519.22136 macOS
CNA OpenAI Codex Desktop affected 26.304.38 26.513.40821 custom Windows
CNA OpenAI Codex Desktop unaffected 26.519.21041 Windows
CNA OpenAI Codex Desktop Microsoft Store Package affected 26.304.38.0 26.513.4821.0 custom Windows
CNA OpenAI Codex Desktop Microsoft Store Package unaffected 26.519.2081.0 Windows

References

ReferenceSourceLinkTags
github.com/openai/codex/pull/22643 8f4f43ab-ba69-4d92-aa1d-d772184d6fb7 github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Emanuele Barbeno, Cyrill Bannwart, Yves Bieri, Lukasz D., and Urs Mueller of Compass Security (@compasssecurity). (en)

Additional Advisory Data

Solutions

CNA: Upgrade Codex CLI to version 0.131.0 or later, Codex Desktop for macOS to application version 26.519.22136 or later, or Codex Desktop for Windows to application version 26.519.21041 (Microsoft Store package 26.519.2081.0) or later.

Workarounds

CNA: Until updated, do not open or follow instructions from untrusted repositories. On macOS and Linux, keep filesystem sandboxing enabled.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report