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
OpenAI Codex CLI versions 0.23.0 and earlier are vulnerable to arbitrary code execution via malicious MCP configuration files. The attack vector involves placing crafted .env or .codex/config.toml files in a repository. When a user runs the codex command within that repository, the CLI automatically loads these files without prompting, executing embedded commands immediately. This behavior results in remote code execution without requiring user interaction or privileges. The vulnerability is tracked as CVE-2025-61260 with a CVSS 3.1 base score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). No official patch or remediation guidance is currently provided, and no known exploits in the wild have been reported.
Potential Impact
Successful exploitation leads to remote, unauthenticated, and automatic execution of arbitrary commands on the user's system when running the codex CLI inside a malicious repository. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability does not require user interaction beyond running the codex command and does not require privileges, making it highly severe.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid running the codex CLI command inside untrusted or unverified repositories to prevent automatic loading of malicious configuration files. Monitoring for updates from OpenAI regarding patches or mitigations is strongly recommended.
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.
CVSS v3.1
Score 9.8critical
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
OpenAI Codex CLI versions 0.23.0 and earlier are vulnerable to arbitrary code execution via malicious MCP configuration files. The attack vector involves placing crafted .env or .codex/config.toml files in a repository. When a user runs the codex command within that repository, the CLI automatically loads these files without prompting, executing embedded commands immediately. This behavior results in remote code execution without requiring user interaction or privileges. The vulnerability is tracked as CVE-2025-61260 with a CVSS 3.1 base score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). No official patch or remediation guidance is currently provided, and no known exploits in the wild have been reported.
Potential Impact
Successful exploitation leads to remote, unauthenticated, and automatic execution of arbitrary commands on the user's system when running the codex CLI inside a malicious repository. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability does not require user interaction beyond running the codex command and does not require privileges, making it highly severe.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid running the codex CLI command inside untrusted or unverified repositories to prevent automatic loading of malicious configuration files. Monitoring for updates from OpenAI regarding patches or mitigations is strongly recommended.
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/22/2026, 6:31:25 AM
Last updated: 5/31/2026, 12:37:30 AM
Views: 99
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.