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
CVE-2025-61260 affects OpenAI Codex CLI up to version 0.23.0. The vulnerability arises because the tool automatically loads project-local environment and configuration files (.env and .codex/config.toml) without requiring user confirmation. An attacker who controls or compromises a repository can embed malicious commands in these files, which are executed immediately when the codex command is run. This leads to unauthenticated remote code execution with high impact on confidentiality, integrity, and availability. The CVSS v3.1 base score is 9.8, reflecting network attack vector, no privileges required, no user interaction, and full compromise impact. There is no vendor advisory or patch information currently available.
Potential Impact
Successful exploitation results in remote code execution on the user's system running the vulnerable Codex CLI, allowing attackers to execute arbitrary commands with the privileges of the user running the tool. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability requires no privileges or user interaction beyond running the codex command in a malicious repository.
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 inside untrusted or potentially compromised repositories to prevent automatic loading and 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.
CVSS v3.1
Score 9.8critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-61260 affects OpenAI Codex CLI up to version 0.23.0. The vulnerability arises because the tool automatically loads project-local environment and configuration files (.env and .codex/config.toml) without requiring user confirmation. An attacker who controls or compromises a repository can embed malicious commands in these files, which are executed immediately when the codex command is run. This leads to unauthenticated remote code execution with high impact on confidentiality, integrity, and availability. The CVSS v3.1 base score is 9.8, reflecting network attack vector, no privileges required, no user interaction, and full compromise impact. There is no vendor advisory or patch information currently available.
Potential Impact
Successful exploitation results in remote code execution on the user's system running the vulnerable Codex CLI, allowing attackers to execute arbitrary commands with the privileges of the user running the tool. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability requires no privileges or user interaction beyond running the codex command in a malicious repository.
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 inside untrusted or potentially compromised repositories to prevent automatic loading and 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: 04/14/2026, 14:32:15 UTC
Last enriched: 07/05/2026, 21:36:06 UTC
Last updated: 07/31/2026, 19:22:56 UTC
Views: 186
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.
External Links
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.