CVE-2025-61260 OpenAI Codex CLI enables code execution through malicious MCP (Model Context Protocol) configuration files
CriticalCVSS 9.8
EPSS 6.9%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
Description
A vulnerability was identified in OpenAI Codex CLI v0.23.0 and before that enables code execution through malicious MCP (Model Context Protocol) configuration files. The attack is triggered when a user runs the codex command inside a malicious or compromised repository. Codex automatically loads project-local .env and .codex/config.toml files without requiring user confirmation, allowing attackers to embed arbitrary commands that execute immediately.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| OpenAI @openai/codex(npm) | <= 0.23.0 | after 0.23.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| OpenAI @openai/codex(npm) | <= 0.23.0 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- research.checkpoint.com exploit
- openai.com
- github.com
- github.com product