Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
WS-2026-0013
Published:February 04, 2026
Updated:July 21, 2026
OpenAI Codex CLI: unsafe auto-approval of git commands. The 'safe command' allowlist trusted git subcommands (show/diff/log/branch) by name only, ignoring arguments, so crafted invocations bypassed the approval/sandbox boundary. Vectors: git show/diff/log --output <file> (arbitrary file write); --ext-diff/--textconv/--exec/--paginate and -c core.pager=<cmd> / --config-env (external command execution / argument injection); destructive push/branch/clean forms. Fixed by inspecting git arguments and config overrides so non-read-only invocations require approval. No CVE assigned; vendor paid a high-severity bounty.
Affected Packages
https://github.com/openai/codex.git (GITHUB):
Affected version(s) >=artifact-runtime-v2.3.4 <rust-v0.95.0
Fix Suggestion:
Update to version rust-v0.95.0
@openai/codex (NPM):
Affected version(s) >=0.1.4160940 <0.95.0
Fix Suggestion:
Update to version 0.95.0
Do you need more information?
Contact Us
CVSS v4
Base Score:
9.3
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
8.6
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH