OpenAI Codex CLI Command Injection Vulnerability
OpenAI addressed a critical command-injection vulnerability in its Codex CLI tool that allowed attackers to execute arbitrary commands on developer machines by hiding malicious configuration files within code repositories. The flaw, disclosed by Check Point and patched in Codex CLI version 0.23.0, exploited the way the tool automatically loaded and executed MCP server entries from project-local configuration files. If a repository contained a file that redirected the configuration directory and included a malicious MCP server command, Codex CLI would execute those commands as soon as a developer ran the Codex command, potentially compromising the system.
This vulnerability turned routine developer workflows into attack vectors, as simply running Codex CLI in a tampered repository could result in the execution of hidden commands without the user's knowledge. OpenAI released a fix for the issue after being notified by Check Point, mitigating the risk of attackers hijacking developer machines through this vector. Security teams are advised to ensure all Codex CLI installations are updated to the latest version and to review repository sources before running AI-powered development tools.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
3 events from the most recent confirmed update back to the earliest known activity.
OpenAI patches Codex CLI in version 0.23.0
OpenAI fixed the vulnerability in Codex CLI version 0.23.0 after disclosure by Check Point. The patch blocked project-local redirection of CODEX_HOME and addressed unvalidated execution of local MCP server entries.
Researchers detail repository-based exploitation path
Technical analysis showed attackers with repository write access or pull request capability could abuse .env files and project-local MCP server entries to redirect CODEX_HOME, load rogue configuration, and execute hidden commands during normal developer workflows. The issue created supply chain risk for downstream users and CI/CD environments.
Check Point discovers RCE flaw in OpenAI Codex CLI
Check Point researchers identified a critical command-injection/remote code execution vulnerability in OpenAI's Codex CLI, tracked as CVE-2025-61260. The flaw allowed malicious repository files and configuration redirection to trigger arbitrary command execution on developer machines.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
3 references tracked. Mallory keeps watching after this page renders.
Codex Bug Let Repo Files Execute Hidden Commands
govinfosecurity.com
Open sourceCodex Bug Let Repo Files Execute Hidden Commands
bankinfosecurity.com
Open sourceRCE flaw in OpenAI’s Codex CLI highlights new risks to dev environments
csoonline.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


