{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.9.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "12994d3a43532fc48ab924035f85cc12cff85fa3"
            },
            {
              "fixed": "6cf4b96f9dbbef8a94acc1ff703eb118481514d8"
            }
          ],
          "repo": "https://github.com/openai/codex",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2025-54558",
  "modified": "2026-03-12T13:51:20.146417032Z",
  "published": "2025-07-25T02:15:24.433Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/openai/codex/compare/rust-v0.8.0...rust-v0.9.0"
    },
    {
      "type": "FIX",
      "url": "https://github.com/openai/codex/commit/6cf4b96f9dbbef8a94acc1ff703eb118481514d8"
    },
    {
      "type": "FIX",
      "url": "https://github.com/openai/codex/pull/1644"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}