# CVE-2025-61260: OpenAI Codex CLI enables code execution through malicious MCP (Model Context Protocol) configuration files

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 7.07%, higher than 94% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-14T00:00:00.000Z
- Modified: 2026-11-04T22:10:00.210Z
- Also known as: GHSA-xrxf-jgv3-qmrm
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- @openai/codex (npm): up to 0.23.0

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://research.checkpoint.com/2025/openai-codex-cli-command-injection-vulnerability/> (exploit)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-61260> (advisory)
- <https://github.com/openai/codex> (package)
- <https://research.checkpoint.com/2025/openai-codex-cli-command-injection-vulnerability> (web)
- <http://openai.com> (web)

## Sources

- CVE List: [CVE-2025-61260](https://www.cve.org/CVERecord?id=CVE-2025-61260), CVE Terms of Use, modified 2026-07-05
- GitHub Advisory Database: [GHSA-xrxf-jgv3-qmrm](https://github.com/advisories/GHSA-xrxf-jgv3-qmrm), CC-BY-4.0, modified 2026-04-16
- NVD: [CVE-2025-61260](https://nvd.nist.gov/vuln/detail/CVE-2025-61260), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2025-61260 · Whole record: https://cve.day/CVE-2025-61260.json · Rebuilt by cve.day 2026-11-25T22:59:12.073Z
