CVE-2025-54558 Details
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.
A vulnerability exists in OpenAI Codex CLI versions prior to 0.9.0, where the application automatically approves the execution of ripgrep (rg) commands. This auto-approval occurs even when potentially harmful flags are used, such as '--pre', '--hostname-bin', '--search-zip', or '-z'. The issue arises because the CLI does not properly validate these flags before granting permission to execute the command.
Users can update to OpenAI Codex CLI version 0.9.0 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 25, 2025CISA-ADP
Assessed Jul 25, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/openai/codex/commit/6cf4b96f9dbbef8a94acc1ff703eb118481514d8 | [email protected] | Source CodeVendor |
| https://github.com/openai/codex/compare/rust-v0.8.0...rust-v0.9.0 | [email protected] | Release NotesVendor |
| https://github.com/openai/codex/pull/1644 | [email protected] | Issue TrackingVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-829 | Inclusion of Functionality from Untrusted Control Sphere | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| OpenAI Codex CLI | All versions |
CPE
Remediation
| |
| ripgrep | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 25, 2025 | New CVE Received | [email protected] |
Volerion