9.8critical
OpenAI Codex CLI enables code execution through malicious MCP (Model Context Protocol) configuration files
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 7.07% (higher than 94% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-xrxf-jgv3-qmrm
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| @openai/codex (npm) | up to 0.23.0 | GitHub Advisory Database |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
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.
NVD (es)
Se identificó una vulnerabilidad en OpenAI Codex CLI v0.23.0 y versiones anteriores que permite la ejecución de código a través de archivos de configuración maliciosos de MCP (Protocolo de Contexto del Modelo). El ataque se activa cuando un usuario ejecuta el comando codex dentro de un repositorio malicioso o comprometido. Codex carga automáticamente los archivos .env y .codex/config.toml locales del proyecto sin requerir confirmación del usuario, lo que permite a los atacantes incrustar comandos arbitrarios que se ejecutan inmediatamente.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-61260 changed 2026-07-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xrxf-jgv3-qmrm changed 2026-04-16 | CC-BY-4.0 |
| NVD | CVE-2025-61260 changed 2026-11-04 | Public domain |