CVE-2025-61260
A vulnerability was identified in OpenAI Codex CLI v0.23.0 and …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- openai.com
- research.checkpoint.com/2025/openai-codex-cli-command-injection-vulnerability/
- nvd.nist.gov/vuln/detail/CVE-2025-61260
- research.checkpoint.com/2025/openai-codex-cli-command-injection-vulnerability
- github.com/advisories/GHSA-xrxf-jgv3-qmrm
- nvd.nist.gov/vuln/detail/CVE-2025-61260
- cve.org/CVERecord?id=CVE-2025-61260
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.