CVE-2025-59532: Sandbox bypass and arbitrary file write vulnerability in OpenAI Codex CLI
Attack on AI2 Disclosed vulnerabilityInfrastructure vulnerability
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
Details
- type
- Attack on AIAn AI model, agent or AI-powered product was the thing exploited, abused or leaked.
- categories
- Infrastructure vulnerabilityCVEs and advisories in AI frameworks, inference servers, MCP servers, AI developer tools and hosting stacks.
- Infrastructure vulnerability
- owasp llm top 10
- mitre atlas
- no technique for these categoriesBoth rows are derived from the type and categories (OWASP 2025 edition, ATLAS release 2026.09), not classified per record. How
- severity
- 2 · Disclosed vulnerabilityCVE or vendor advisory, patched or patchable, no confirmed exploitation.
- targets
- OpenAI, Framework / tooling
- products
- Codex CLI
- incident date
- 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.
- classifier confidence
- 0.95 · published at or above 0.80; see the methodology
- tags
- CVE-2025-59532 · sandbox-escape · openai
- record
- created 2026-10-18 06:33Z · updated 2026-10-18 07:00Z · json
Sources · 2
- 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 GCD AI RADAR in its own words; data is CC BY-SA 4.0.
Related incidents
- 2025-08-13CVE-2025-55345: Codex CLI Arbitrary File Overwrite Vulnerability2 Disclosedon AIInfra vuln1 src
- 2026-03-11CVE-2026-31862: RCE vulnerability in Cloud CLI Claude Code UI2 Disclosedon AIInfra vuln1 src
- 2026-03-11Cloud CLI WebSocket shell OS command injection vulnerability2 Disclosedon AIInfra vuln1 src
- 2026-03-11Cloud CLI command injection vulnerability in git-config endpoint2 Disclosedon AIInfra vuln1 src
- 2025-07-25Auto-Approval Flaw in OpenAI Codex CLI2 Disclosedon AIInfra vuln1 src
- 2026-09-01OpenAI Codex CLI and Desktop vulnerable to arbitrary code execution via Git metadata2 Disclosedon AIInfra vuln1 src