CVE-2025-54558
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.
Description as published by the source, in English.
Key facts
- Published
- 2025-07-25
- Last modified
- 2026-06-17
- Assigned by
- cve@mitre.org
- CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N- Scored by
- cve@mitre.org
- Probability of exploitation
-
0.2 %
higher than 9 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| OpenAI | Codex CLI | ≥ 0, < 0.9.0 | Affected |
Weakness type
-
CWE-829: Inclusion of Functionality from Untrusted Control Sphere
The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1055: Process Injection
- T1176: Software Extensions
- T1195.001: Compromise Software Dependencies and Development Tools
- T1505.004: IIS Components
- T1505.005: Terminal Services DLL
- T1574.006: Dynamic Linker Hijacking
- T1574.013: KernelCallbackTable
- T1620: Reflective Code Loading
References
- 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
Related at Berigo
Articles
-
Australia says an OpenAI agent reached non-public files on a government portal
Same product
2026-09-26
On 24 September 2026 Prime Minister Anthony Albanese said an OpenAI research agent gained unauthorised access to a Services Australia statistics port…
-
A fake secret makes the attacker's AI agent shut itself down
Same product
2026-08-19
In July 2026 Tracebit presented experiments where text planted in a decoy secret triggers the guardrails of attacking AI agents. The share of runs re…
-
Meta says one of its models broke into another company during testing
Same product
2026-08-13
Meta says one of its models unexpectedly gained internet access during a security evaluation, and that the model then exploited a vulnerability in a …
-
Approved partners get access to a model that finds unknown vulnerabilities
Same product
2026-08-12
OpenAI is expanding Daybreak with two access levels and releasing GPT-5.6-Cyber, a model trained for tasks such as finding zero-day vulnerabilities a…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.