CVE-2025-59532 (CNNVD-202509-3222)

HIGH
中文标题:
OpenAI Codex CLI 输入验证错误漏洞
英文标题:
Codex has sandbox bypass due to bug in path configuration logic
CVSS分数: 8.6
发布时间: 2025-09-22 20:26:42
漏洞类型: 输入验证错误
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

OpenAI Codex CLI是OpenAI开源的一个在终端中运行的轻量级编码代理软件。 OpenAI Codex CLI 0.2.0版本至0.38.0版本存在输入验证错误漏洞,该漏洞源于沙箱配置逻辑错误,可能导致任意文件写入和命令执行。

英文描述:

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.

CWE类型:
CWE-20
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
openai codex >= 0.2.0, < 0.39.0 - - cpe:2.3:a:openai:codex:>=_0.2.0,_<_0.39.0:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
https://github.com/openai/codex/security/advisories/GHSA-w5fx-fh39-j5rw x_refsource_CONFIRM
cve.org
访问
https://github.com/openai/codex/commit/8595237505a1e0faabc2af3db805b66ce3ae182d x_refsource_MISC
cve.org
访问
https://github.com/openai/codex/releases/tag/rust-v0.39.0 x_refsource_MISC
cve.org
访问
CVSS评分详情
4.0 (cna)
HIGH
8.6
CVSS向量: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
机密性
HIGH
完整性
HIGH
可用性
HIGH
后续系统影响 (Subsequent):
机密性
NONE
完整性
NONE
可用性
NONE
时间信息
发布时间:
2025-09-22 20:26:42
修改时间:
2025-09-23 20:19:23
创建时间:
2025-11-11 15:40:46
更新时间:
2025-11-11 16:00:12
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2025-59532 2025-11-11 15:23:31 2025-11-11 07:40:46
NVD nvd_CVE-2025-59532 2025-11-11 15:01:03 2025-11-11 07:48:33
CNNVD cnnvd_CNNVD-202509-3222 2025-11-11 15:12:58 2025-11-11 08:00:12
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 16:00:12
vulnerability_type: 未提取 → 输入验证错误; cnnvd_id: 未提取 → CNNVD-202509-3222; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 输入验证错误
  • cnnvd_id: 未提取 -> CNNVD-202509-3222
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:48:33
data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • data_sources: ['cve'] -> ['cve', 'nvd']