gcdRadar
archive/Patch now/AIR-2025-0024
closedclosed 19 Sep 2025Patch now2 Disclosed vulnerabilityAI

CVE-2025-59532: Sandbox bypass and arbitrary file write vulnerability in OpenAI Codex CLI

Codex CLI

OpenAI Codex CLI contained a configuration bug that allowed model-generated working directories to bypass workspace boundaries. The flaw enables arbitrary file writes and command execution and was patched in version 0.39.0.

disclosed CVENo confirmed exploitation, so this record is tracked as a disclosed vulnerability and not counted as an incident. It moves into the counts if CISA or the vendor confirms exploitation. Why

CVSS
8.6
EPSS
0.01 · top 40% · 2026-11-13
fix status
Fix status unknown
first report
19 Sep 2025
last update
22 Sep 2025

Timeline · 2

  1. 19 Sep 2025CVE-2025-59532: Codex has sandbox bypass due to bug in path configuration logic
  2. 22 Sep 2025CVE-2025-59532: Codex CLI is a coding agent from OpenAI that runs locally.

Sources · 2

Advisories and databases

  1. 2025-09-19
    CVE-2025-59532: Codex has sandbox bypass due to bug in path configuration logic
    GitHub Advisory Database · github.com/advisories/GHSA-w5fx-fh39-j5rw
  2. 2025-09-22

Titles and links belong to their publishers. The summary above is written by gcdRadar in its own words; data is CC BY-SA 4.0.

Classification

AI role
Attack on AI
categories
Infrastructure vulnerability
severity
2 · Disclosed vulnerability
fix status
Fix status unknown
targets
OpenAI, Framework / tooling
owasp llm top 10
LLM03:2025 Supply Chain
mitre atlas
no technique for these categories
dates
happened 22 Sep 2025 · first reported 19 Sep 2025
origin
NVD
Vulnerability record from NVD / the GitHub Advisory Database. This product uses the NVD API but is not endorsed or certified by the NVD.
record
confidence 0.95 · created 2026-10-18 06:33Z · updated 2026-10-18 07:00Z

Lane, AI role, categories and severity come from the classifier; the OWASP and ATLAS rows are derived from the categories. How these are assigned

Copy a brief

This record as a short Markdown brief, for a ticket, a chat or a coding agent.

the brief as text
# CVE-2025-59532: Sandbox bypass and arbitrary file write vulnerability in OpenAI Codex CLI

https://gcdradar.vercel.app/incidents/cve-2025-59532-sandbox-bypass-and-arbitrary-file-write-vulne · AIR-2025-0024 · closed 2025-09-19

- Lane: Patch now
- Severity: 2 (Disclosed vulnerability)
- Fix status: Fix status unknown
- First reported: 2025-09-19 (happened 2025-09-22)
- AI role: Attack on AI
- Products: Codex CLI
- CVE ids: CVE-2025-59532
- CVSS: 8.6

## Summary

OpenAI Codex CLI contained a configuration bug that allowed model-generated working directories to bypass workspace boundaries. The flaw enables arbitrary file writes and command execution and was patched in version 0.39.0.

## What to do

No action recorded; read the sources below and the vendor's advisory.

## Latest updates

- 2025-09-22: CVE-2025-59532: Codex CLI is a coding agent from OpenAI that runs locally. (https://nvd.nist.gov/vuln/detail/CVE-2025-59532)
- 2025-09-19: CVE-2025-59532: Codex has sandbox bypass due to bug in path configuration logic (https://github.com/advisories/GHSA-w5fx-fh39-j5rw)

## Sources

- 2025-09-19 GitHub Advisory Database: CVE-2025-59532: Codex has sandbox bypass due to bug in path configuration logic https://github.com/advisories/GHSA-w5fx-fh39-j5rw
- 2025-09-22 NVD: CVE-2025-59532: Codex CLI is a coding agent from OpenAI that runs locally. https://nvd.nist.gov/vuln/detail/CVE-2025-59532

Verify against the vendor's advisory before changing production. Data CC BY-SA 4.0, https://gcdradar.vercel.app.

Related

  1. closed8.8
    OpenAI Codex CVE-2025-55345: Codex CLI Arbitrary File Overwrite Vulnerability

    Patch now · Disclosed · since 13 Aug 2025 · CVE-2025-55345

    AI
  2. closed9.1
    Claude Code UI CVE-2026-31862: RCE vulnerability in Cloud CLI Claude Code UI

    Patch now · Disclosed · since 11 Mar 2026 · CVE-2026-31862

    AI
  3. closed8.7
    Claude Code UI Cloud CLI WebSocket shell OS command injection vulnerability

    Patch now · Disclosed · since 11 Mar 2026 · CVE-2026-31975

    AI
  4. closed8.7
    Claude Code UI Cloud CLI command injection vulnerability in git-config endpoint

    Patch now · Disclosed · since 11 Mar 2026 · CVE-2026-31861

    AI
  5. closed4.1
    OpenAI Codex Auto-Approval Flaw in OpenAI Codex CLI

    Patch now · Disclosed · since 25 Jul 2025 · CVE-2025-54558

    AI
  6. closed7.3
    AI