🇰🇷 한글 설명
OpenAI Codex CLI 및 Desktop의 PowerShell 명령 해석 오류로 인해 특정 명령이 안전한 것으로 잘못 분류되는 취약점이 발견되었습니다. 공격자가 준비한 저장소를 통해 사용자의 승인 없이 파일을 작성하거나 설정을 변경할 수 있으며, 이를 통해 악성 MCP 서버를 실행하여 사용자 권한으로 코드를 실행할 수 있습니다.
💡 쉬운 설명
프로그램이 특정 명령어를 잘못 해석하여, 사용자가 허락하지 않았는데도 몰래 파일을 만들거나 설정을 바꿀 수 있는 문제입니다. 이를 통해 해커가 사용자의 컴퓨터에서 마음대로 명령을 실행할 위험이 있습니다.
🇺🇸 원문 (English)
OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS misclassified certain PowerShell commands as safe because their command-safety parser interpreted PowerShell's stop-parsing token (--%) differently than PowerShell itself. If a user opens an attacker-prepared repository and Codex follows its instructions, Codex can run a file-writing Git command without requesting user approval. On macOS and Linux, exploitation additionally requires separately installed PowerShell Core (pwsh) to be invoked. If filesystem protections permit the write, the command can modify Codex's configuration. If Codex later loads the modified configuration, it can launch an attacker-controlled MCP server and execute code with the user's privileges, allowing it to read, change, or delete files accessible to that account. The approval bypass does not disable filesystem sandboxing; the default filesystem sandbox on macOS and Linux can prevent writes outside permitted locations.
📍 영향받는 시스템
OpenAI Codex CLI (Windows, macOS, Linux) 및 Codex Desktop (Windows, macOS)
⚔️ 공격 벡터
공격자가 준비한 저장소를 사용자가 열고 Codex가 명령을 실행하도록 유도하여 승인 없이 설정 파일을 변조함
🛡️ 대응 방법
OpenAI에서 제공하는 최신 보안 패치가 적용된 Codex 소프트웨어로 즉시 업데이트하십시오.
🔧 검증 코드
설치된 Codex의 버전을 확인하여 취약점이 해결된 최신 버전인지 제조사의 보안 공지와 대조하십시오.
codex --version 2>/dev/null || echo 'Codex not found'