CVE-2025-61260 Details
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.
A command injection vulnerability has been identified in OpenAI Codex CLI versions through 0.23.0. This vulnerability allows for arbitrary code execution via malicious Model Context Protocol (MCP) configuration files. The issue arises because Codex automatically loads project-specific environment and configuration files without user consent, enabling attackers to embed commands that are executed immediately. The vulnerability can be exploited by committing a malicious .env file and a corresponding .codex/config.toml file into a repository. When a user runs the Codex command in that repository, the embedded commands are executed without any prompts, creating a stealthy backdoor.
Users are advised to update to OpenAI Codex CLI version 0.23.0 or later, which blocks project-local redirection of the CODEX_HOME variable and prevents the automatic execution of commands from MCP entries.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
No affected product data is available for this CVE.
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 4, 2026 | CVE Translated | [email protected] |
| Jul 5, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 16, 2026 | CVE Modified | CISA-ADP |
| Apr 14, 2026 | New CVE Received | [email protected] |