🔍 CVE-2026-96620

0.0
CVSS Score
UNKNOWN
2026-10-16
2026-10-21 22:16
✅ 완료

🇰🇷 한글 설명

Claude Agent SDK 0.2.121 미만 버전에서 resume 옵션이 검증 없이 CLI로 전달되어 발생하는 취약점입니다. 공격자가 세션 ID에 대시(-)로 시작하는 값을 주입하여 --mcp-config 플래그를 실행하면, SDK의 권한 제어를 우회하여 임의의 명령어를 실행할 수 있습니다.

💡 쉬운 설명

Claude 도구를 사용할 때 입력값에 특수 명령어를 섞어 넣으면, 프로그램이 이를 정상적인 설정이 아닌 공격 명령으로 오해하여 실행할 수 있는 문제입니다. 이를 통해 해커가 사용자의 컴퓨터에서 몰래 명령을 내릴 수 있습니다.

🇺🇸 원문 (English)

Claude Agent SDK is a Python SDK for Claude Code. Prior to 0.2.121, the resume option is passed to the Claude CLI as a separate token without validation, so a dash-leading value is parsed as an independent CLI flag. An attacker can inject the --mcp-config flag to define a stdio MCP server, causing arbitrary command execution at CLI startup outside the SDK permission controls. The issue is exploitable when an application passes untrusted input as the session ID to resume. This issue is fixed in version 0.2.121.

📍 영향받는 시스템

Claude Agent SDK versions prior to 0.2.121

⚔️ 공격 벡터

신뢰할 수 없는 입력값을 resume 옵션의 세션 ID로 전달하여 CLI 플래그 주입(Flag Injection)

🛡️ 대응 방법

Claude Agent SDK를 0.2.121 버전 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 0.2.121보다 낮으면 취약한 상태입니다.

Shell / Script
pip show claude-agent-sdk 2>/dev/null | grep Version

💻 영향받는 소프트웨어

Claude Code