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
- CVE ids
Timeline · 2
Sources · 2
Advisories and databases
- 2025-09-19CVE-2025-59532: Codex has sandbox bypass due to bug in path configuration logicGitHub Advisory Database · github.com/advisories/GHSA-w5fx-fh39-j5rw
- 2025-09-22CVE-2025-59532: Codex CLI is a coding agent from OpenAI that runs locally.NVD · nvd.nist.gov/vuln/detail/CVE-2025-59532
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
- lane
- Patch now
- 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
- NVDVulnerability 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
- closed8.8OpenAI Codex CVE-2025-55345: Codex CLI Arbitrary File Overwrite Vulnerability
Patch now · Disclosed · since 13 Aug 2025 · CVE-2025-55345
AI - closed9.1Claude Code UI CVE-2026-31862: RCE vulnerability in Cloud CLI Claude Code UI
Patch now · Disclosed · since 11 Mar 2026 · CVE-2026-31862
AI - closed8.7Claude Code UI Cloud CLI WebSocket shell OS command injection vulnerability
Patch now · Disclosed · since 11 Mar 2026 · CVE-2026-31975
AI - closed8.7Claude Code UI Cloud CLI command injection vulnerability in git-config endpoint
Patch now · Disclosed · since 11 Mar 2026 · CVE-2026-31861
AI - closed4.1OpenAI Codex Auto-Approval Flaw in OpenAI Codex CLI
Patch now · Disclosed · since 25 Jul 2025 · CVE-2025-54558
AI - closed7.3OpenAI Codex OpenAI Codex CLI and Desktop vulnerable to arbitrary code execution via Git metadata
Patch now · Disclosed · since 1 Sep 2026 · CVE-2026-19592
AI