PoC Monitor
← All CVEs
CVE-2025-59532published 22 Sep 2025 20:26 UTCData: JSON · API

Codex

Codex has sandbox bypass due to bug in path configuration logic

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.

First public PoC 93 daysafter publication · 25 Dec 2025
Public PoCs11 on GitHub
CVSS8.6high · scored by CNA · CWE-20
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

openai codex
  • >= 0.2.0, < 0.39.0

Fixed in 0.39.0

Timeline

Days relative to CVE publication
t=0+14+28+42+56+70+84CVE published22 Sep 2025 · t = 0First public PoC25 Dec 2025 · t+93d

First public PoC 93 days after publication; not in CISA KEV. First PoC: baktistr/cve-2025-59532-poc (created 25 Dec 2025, found by us: backfilled).

PoC repositories

Found on GitHub.

1 PoCs

PoCs 1
RepositoryCreatedStarsAssessment
baktistr/cve-2025-59532-poc 25 Dec 2025 +93 d 0 PoC
Flags · score 15
  • no network code found (normal for a local exploit)

Below the suspicion threshold (50); does not change the assessment.

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.