CVE-2025-59532: openai codex · Improper Input Validation
Affects openai codexSource CVE Database V5
Not known to be exploited · CVSS 8.6 High · fixed in 0.39.0 : patch openai codex soon.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 59% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.39.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
AI-suggested
European organizations should immediately update all Codex CLI installations to version 0.39.0 or later and the Codex IDE extension to 0.4.12 or later to ensure sandbox boundaries are properly enforced. Beyond patching, organizations should implement strict access controls on developer workstations, limiting Codex process permissions to the minimum necessary. Employ endpoint detection and response (EDR) solutions to monitor for unusual file writes or command executions originating from Codex processes. Enforce code review and validation procedures to detect unexpected code changes potentially introduced via compromised Codex outputs. Network segmentation and disabling unnecessary network access for developer machines can reduce exposure. Additionally, educate developers about the risks of executing untrusted model-generated code and implement multi-factor authentication to reduce the risk of unauthorized access. Regularly audit and verify sandbox configurations and environment variables to detect any deviations from expected boundaries.
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.