{"id":"CVE-2025-61260","aliases":["CVE-2025-61260","GHSA-xrxf-jgv3-qmrm"],"related":[],"kind":"vulnerability","state":"published","title":"OpenAI Codex CLI enables code execution through malicious MCP (Model Context Protocol) configuration files","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-04-14T00:00:00.000Z","modified":"2026-11-04T22:10:00.210Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.23.0"}],"ecosystem":"npm","package":"@openai/codex","purl":"pkg:npm/%40openai/codex","source":"ghsa"}],"references":[{"url":"https://research.checkpoint.com/2025/openai-codex-cli-command-injection-vulnerability/","tags":["exploit"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61260","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/openai/codex","tags":["package"],"sources":["ghsa"]},{"url":"https://research.checkpoint.com/2025/openai-codex-cli-command-injection-vulnerability","tags":["web"],"sources":["ghsa"]},{"url":"http://openai.com","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-04-16T11:31:28.540Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-61260","url":"https://www.cve.org/CVERecord?id=CVE-2025-61260","licence":"CVE Terms of Use","modified":"2026-07-05T01:33:53.866Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xrxf-jgv3-qmrm","url":"https://github.com/advisories/GHSA-xrxf-jgv3-qmrm","licence":"CC-BY-4.0","modified":"2026-04-16T23:11:28.675Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-61260","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61260","licence":"Public domain","modified":"2026-11-04T22:10:00.210Z"}],"updatedAt":"2026-11-25T22:59:12.073Z","epss":{"score":0.07071,"percentile":0.94345,"date":"2026-12-01T12:00:22.000Z"}}