CVE-2025-61260: Code Injection
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-61260?
CVE-2025-61260 is a critical vulnerability that allows for arbitrary code execution through malicious MCP configuration files.
How do I fix CVE-2025-61260?
To mitigate CVE-2025-61260, ensure you upgrade to the latest version of OpenAI Codex CLI that exceeds version 0.23.0.
Who is affected by CVE-2025-61260?
Users of OpenAI Codex CLI versions 0.23.0 and earlier are at risk from CVE-2025-61260.
What attack vector is utilized in CVE-2025-61260?
CVE-2025-61260 is exploited when the codex command is executed within a malicious or compromised repository.
What is the impact of CVE-2025-61260 on systems?
The CVE-2025-61260 vulnerability can lead to unauthorized code execution, potentially compromising system integrity and security.