CVE-2025-61260
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
@openai/codex (npm)up to 0.23.0GitHub Advisory Database

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94

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

SourceRecordLicence
CVE ListCVE-2025-61260 changed 2026-07-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-xrxf-jgv3-qmrm changed 2026-04-16CC-BY-4.0
NVDCVE-2025-61260 changed 2026-11-04Public domain