Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-19591

Quick assessment

Affected
OpenAI Codex CLI
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

OpenAI Codex CLI是美国OpenAI公司的一款提供命令行交互的智能编程辅助软件。 OpenAI Codex CLI 0.72.0至0.130.0版本存在输入验证错误漏洞,该漏洞源于命令安全解析器错误地解释了PowerShell的停止解析令牌(--%),导致某些PowerShell命令被误判为安全,攻击者可利用精心准备的仓库在未经用户批准的情况下运行文件写入Git命令,修改Codex配置,加载攻击者控制的MCP服务器并以用户权限执行代码,从而读取、更改或删除文件。

AI Predicted 8.8 Difficulty: Moderate EPSS 0.30% · P23

Affected Version Matrix 8

VendorProduct Version RangeStatus
OpenAI Codex CLI 0.72.0≤ 0.130.0 affected
0.131.0 unaffected
OpenAI Codex Desktop 260202.0859≤ 26.513.31313 affected
26.519.22136 unaffected
26.304.38≤ 26.513.40821 affected
26.519.21041 unaffected
OpenAI Codex Desktop (Microsoft Store package) 26.304.38.0≤ 26.513.4821.0 affected
26.519.2081.0 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-19591

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
N/A
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
转义、元或控制序列转义处理不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
OpenAI Codex CLI 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
OpenAI Codex CLI是美国OpenAI公司的一款提供命令行交互的智能编程辅助软件。 OpenAI Codex CLI 0.72.0至0.130.0版本存在输入验证错误漏洞,该漏洞源于命令安全解析器错误地解释了PowerShell的停止解析令牌(--%),导致某些PowerShell命令被误判为安全,攻击者可利用精心准备的仓库在未经用户批准的情况下运行文件写入Git命令,修改Codex配置,加载攻击者控制的MCP服务器并以用户权限执行代码,从而读取、更改或删除文件。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
OpenAI Codex CLI 0.72.0 ~ 0.130.0 -
OpenAI Codex Desktop 260202.0859 ~ 26.513.31313 -
OpenAI Codex Desktop 26.304.38 ~ 26.513.40821 -
OpenAI Codex Desktop (Microsoft Store package) 26.304.38.0 ~ 26.513.4821.0 -

II. Public POCs for CVE-2026-19591

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-19591

登录查看更多情报信息。

Patches & Fixes for CVE-2026-19591 (1)

Same Patch Batch · OpenAI · 2026-09-01 · 4 CVEs total

CVE-2026-19593 OpenAI Codex Desktop 配置错误漏洞
CVE-2026-19592 OpenAI Codex CLI 配置错误漏洞
CVE-2026-19590 OpenAI Codex Desktop 权限许可和访问控制问题漏洞

IV. Related Vulnerabilities

V. Comments for CVE-2026-19591

No comments yet


Leave a comment