CVE-2025-59532 Details
Description
Codex CLI is a coding agent from OpenAI that runs locally. In versions 0.2.0 to 0.38.0, 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. This logic bypassed the intended workspace boundary and enables arbitrary file writes and command execution where the Codex process has permissions - this did not impact the network-disabled sandbox restriction. This issue has been patched in Codex CLI 0.39.0 that canonicalizes and validates that the boundary used for sandbox policy is based on where the user started the session, and not the one generated by the model. Users running 0.38.0 or earlier should update immediately via their package manager or by reinstalling the latest Codex CLI to ensure sandbox boundaries are enforced. If using the Codex IDE extension, users should immediately update to 0.4.12 for a fix of the sandbox issue.
A vulnerability in OpenAI Codex CLI versions 0.2.0 through 0.38.0 allows for a sandbox bypass. This issue arises from a bug in the sandbox configuration logic, where a model-generated current working directory (cwd) could be misinterpreted as the sandbox's writable root. Consequently, this included paths outside the initial session folder, bypassing the intended workspace boundaries. The flaw enables arbitrary file writes and command execution within the permissions of the Codex process, although it does not affect the network-disabled sandbox restriction.
Users should update to OpenAI Codex CLI version 0.39.0 or later, which addresses the issue by properly validating and canonicalizing the sandbox boundaries. Instructions for updating are available on the OpenAI Codex GitHub page.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 22, 2025CISA-ADP
Assessed Sep 23, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/openai/codex/commit/8595237505a1e0faabc2af3db805b66ce3ae182d | [email protected] | Source CodeVendor |
| https://github.com/openai/codex/releases/tag/rust-v0.39.0 | [email protected] | Release NotesVendor |
| https://github.com/openai/codex/security/advisories/GHSA-w5fx-fh39-j5rw | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| OpenAI Codex CLI | All versions |
CPE
Remediation
| |
| OpenAI Codex IDE | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 11, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 22, 2025 | New CVE Received | [email protected] |
Volerion