CVE-2025-54558: OpenAI Codex CLI - Command Injection
- Cve: CVE-2025-54558
- Name: OpenAI Codex CLI - Command Injection
- Description: OpenAI Codex CLI before 0.9.0 auto-approves ripgrep (aka rg) execution even with the --pre or --hostname-bin or --search-zip or -z flag.
- Impact: Attackers can execute arbitrary commands on the system, potentially leading to full system compromise.
- Remediation: Update to version 0.9.0 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.1
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00226
- Epss percentile: 0.13337
- Assignee: [email protected]
- Published at: 2025-07-25T02:15:24Z
- Age in days: 487
- Modified at: 2026-06-17T09:40:18Z
- References total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-54558
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-829 | Inclusion of Functionality from Untrusted Control Sphere |
References
Same in every row:
- Source: nvd
- Tags:
| Url |
|---|
| https://github.com/openai/codex/commit/6cf4b96f9dbbef8a94acc1ff703eb118481514d8 |
| https://github.com/openai/codex/compare/rust-v0.8.0...rust-v0.9.0 |
| https://github.com/openai/codex/pull/1644 |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| openai/codex | commit, compare, fix, pull | yes | /v1/repositories/openai/codex |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts