Codex has sandbox bypass due to bug in path configuration logic
CVE-2025-59532 · GHSA-w5fx-fh39-j5rw · published 2025-09-19 · updated 2025-09-22
- Severity
- High
- CVSS score
- 8.6
- Chance of exploitation (EPSS)
- 0.89%
- Fixed in
- 0.39.0
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
Due to a bug in the sandbox configuration logic, Codex CLI could treat a model-generated cwd as the sandbox’s writable root, including paths outside of the folder where the user started their session.
Upgrade @openai/codex to 0.39.0 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| @openai/codex | npm | >= 0.2.0, <= 0.38.0 | 0.39.0 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.