CVE-2025-61260 — OpenAI Codex CLI: Command Injection via Project-Local Configuration
Source Check Point Research
Not known to be exploited · CVSS 9.8 Critical.
Data as of 5 Nov 2026, 00:01 UTC
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 14 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmopenai/codex-clipkg:npm/openai/codex-cliOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediately update all OpenAI Codex CLI installations to version 0.23.0 or later, which includes the fix preventing project-local CODEX_HOME redirection and automatic execution of MCP server commands from untrusted locations.
- Audit all repositories for the presence of .env files setting CODEX_HOME and ./.codex/config.toml files containing mcp_servers entries; remove or sanitize any suspicious or unnecessary configurations.
- Implement strict repository access controls and code review policies to prevent unauthorized commits or merges that could introduce malicious project-local configurations.
- Educate developers about the risks of running Codex CLI on untrusted or newly cloned repositories without verification.
- Integrate static analysis or automated scanning tools into CI pipelines to detect and block commits containing potentially dangerous MCP configurations.
- Monitor developer machines and CI environments for unusual Codex CLI activity or unexpected command executions.
- Consider isolating Codex CLI execution environments using containerization or sandboxing to limit the impact of potential command injection.
- Maintain an inventory of all development tools and their versions to ensure timely patching of vulnerabilities.
- Collaborate with supply-chain security teams to vet third-party and open-source repositories for malicious configurations before adoption.
Description
By: Isabel Mill & Oded Vanunu OpenAI Codex CLI is OpenAI’s command-line tool that brings AI model-backed reasoning into developer workflows. It can read, edit, and run code directly from the terminal, making it possible to interact with projects using natural language commands, automate tasks, and streamline day-to-day development One of its key features is […] The post CVE-2025-61260 — OpenAI Codex CLI: Command Injection via Project-Local Configuration appeared first on Check Point Research .