CVE-2025-61260: n/a
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.
AI Analysis
Technical Summary
This vulnerability affects OpenAI Codex CLI versions 0.23.0 and earlier. It arises because the CLI automatically loads project-local environment and configuration files (.env and .codex/config.toml) without prompting the user. An attacker who can place malicious MCP configuration files in a repository can cause arbitrary code execution when the codex command is run in that repository context. No CVSS score or official remediation information is currently available.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code on the user's system when they run the codex command in a malicious or compromised repository. This can lead to unauthorized actions under the user's privileges. There is no indication of known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid running the codex command in untrusted or unverified repositories to prevent automatic execution of malicious configuration files.
CVE-2025-61260: n/a
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability affects OpenAI Codex CLI versions 0.23.0 and earlier. It arises because the CLI automatically loads project-local environment and configuration files (.env and .codex/config.toml) without prompting the user. An attacker who can place malicious MCP configuration files in a repository can cause arbitrary code execution when the codex command is run in that repository context. No CVSS score or official remediation information is currently available.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code on the user's system when they run the codex command in a malicious or compromised repository. This can lead to unauthorized actions under the user's privileges. There is no indication of known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid running the codex command in untrusted or unverified repositories to prevent automatic execution of malicious configuration files.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2025-09-26T00:00:00.000Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69de4fef82d89c981fa84b32
Added to database: 4/14/2026, 2:32:15 PM
Last enriched: 4/14/2026, 2:48:46 PM
Last updated: 4/15/2026, 6:02:47 AM
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.