{"id":"CVE-2025-61260","aliases":["EUVD-2025-209435","GHSA-xrxf-jgv3-qmrm"],"status":"published","title":"OpenAI Codex CLI enables code execution through malicious MCP (Model Context Protocol) configuration files","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-11","score":0.06921,"percentile":0.94181,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-94"],"published":"2026-04-14T00:00:00Z","modified":"2026-11-04T22:10:00Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"@openai/codex","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.23.0"}]}]},{"source":"osv","ecosystem":"npm","package":"@openai/codex","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.23.0"}]}]}],"references":[{"url":"https://research.checkpoint.com/2025/openai-codex-cli-command-injection-vulnerability/","tags":["exploit"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61260","tags":["advisory"]},{"url":"https://research.checkpoint.com/2025/openai-codex-cli-command-injection-vulnerability","tags":["web"]},{"url":"http://openai.com","tags":["web"]},{"url":"https://github.com/advisories/GHSA-xrxf-jgv3-qmrm"},{"url":"https://github.com/openai/codex","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-61260","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.","status":"published","published":"2026-04-14T00:00:00Z","modified":"2026-07-05T01:33:53.866Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:32:45.105469Z"}],"euvd":[{"id":"EUVD-2025-209435","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.","status":"published","published":"2026-04-14T00:00:00Z","modified":"2026-07-05T01:33:53Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T18:20:14.793418Z"}],"ghsa":[{"id":"GHSA-xrxf-jgv3-qmrm","title":"OpenAI Codex CLI enables code execution through malicious MCP (Model Context Protocol) configuration files","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.","status":"published","published":"2026-04-14T15:30:34Z","modified":"2026-04-16T22:56:43Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:39:55.105822Z"}],"nvd":[{"id":"CVE-2025-61260","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.","status":"published","published":"2026-04-14T15:16:24.487Z","modified":"2026-11-04T22:10:00.21Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-94"],"updated_at":"2026-11-04T23:43:38.567042Z"}],"osv":[{"id":"GHSA-xrxf-jgv3-qmrm","title":"OpenAI Codex CLI enables code execution through malicious MCP (Model Context Protocol) configuration files","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.","status":"published","published":"2026-04-14T15:30:34Z","modified":"2026-04-16T23:11:28.675093Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:47:00.198893Z"}]}}
