🔍 CVE-2025-59532

0.0
CVSS Score
UNKNOWN
2025-09-22
2026-10-11 20:10
✅ 완료

🇰🇷 한글 설명

Codex CLI 0.2.0에서 0.38.0 버전 사이의 샌드박스 설정 로직 오류로 인해, 모델이 생성한 작업 디렉토리가 샌드박스의 쓰기 가능 루트로 오인될 수 있습니다. 이로 인해 의도된 워크스페이스 경계를 벗어나 임의의 파일 쓰기 및 명령 실행이 가능해지는 보안 취약점이 존재합니다.

💡 쉬운 설명

AI 코딩 도구가 작업 공간을 벗어나 컴퓨터의 다른 중요한 파일들을 마음대로 수정하거나 명령을 실행할 수 있는 문제입니다. AI가 제안한 경로를 검증 없이 그대로 믿어버려서 발생하는 보안 구멍입니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Codex CLI 0.2.0 ~ 0.38.0, Codex IDE extension 0.4.12 미만 버전

⚔️ 공격 벡터

모델이 생성한 작업 디렉토리(cwd) 경로를 이용해 샌드박스 경계를 우회하여 임의 파일 쓰기 및 명령 실행

🛡️ 대응 방법

Codex CLI를 0.39.0 이상으로, Codex IDE extension을 0.4.12 이상으로 즉시 업데이트

🔧 검증 코드

출력된 버전이 0.39.0 미만(0.38.0 이하)이면 취약한 상태입니다.

Shell / Script
codex --version 2>/dev/null || echo 'Not installed'

💻 영향받는 소프트웨어

Codex