Skip to content
HighVulnerabilityLLM-specific

CVE-2025-61260: OpenAI Codex CLI code execution through malicious MCP configuration files

Identifier
CVE-2025-61260
Published
Record updated
View JSON
Affected
  • @openai/codex <= 0.23.0
Fixed in
No fixed version was stated when the source was last read.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
6.6%

Summary

CVE-2025-61260 affects OpenAI Codex CLI v0.23.0 and earlier. A malicious or compromised repository can trigger code execution when a user runs the codex command inside it, because Codex automatically loads project-local .env and .codex/config.toml files, including malicious MCP (Model Context Protocol) configuration, without user confirmation. Attackers can embed arbitrary commands that execute immediately.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.