CVE-2025-61260

Published Apr 14, 2026 CVSS 3.1 · 9.8 Critical EPSS 6.9% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xrxf-jgv3-qmrm OpenAI Codex CLI enables code execution through malicious MCP (Model Context Protocol) configuration files
History
Type Values Removed Values Added
Title OpenAI Codex CLI Command Injection via Project-Local Configuration
Type Values Removed Values Added
Title OpenAI Codex CLI Command Injection via Project-Local Configuration
Type Values Removed Values Added
Title OpenAI Codex CLI Command Injection via Malicious Configuration Files
Type Values Removed Values Added
Title OpenAI Codex CLI Command Injection via Malicious Configuration Files
Type Values Removed Values Added
Title OpenAI Codex CLI Arbitrary Command Execution via Malicious Configuration Files
Weaknesses CWE-78
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title OpenAI Codex CLI Arbitrary Command Execution via Malicious Configuration Files
Weaknesses CWE-78
CWE-94
Type Values Removed Values Added
First Time appeared Openai
Openai codex
Vendors & Products Openai
Openai codex
Type Values Removed Values Added
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.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jul 5, 2026, 1:33 AM
Reserved
Sep 26, 2025, 12:00 AM
Status
Awaiting Analysis
Published
Apr 14, 2026, 3:16 PM
Modified
Nov 4, 2026, 10:10 PM