🇰🇷 한글 설명
Claude Code 0.2.54부터 2.1.163 버전까지 WebFetch 도구에 huggingface.co 호스트가 사전 승인되어 있어, 공격자가 제어하는 경로에 대한 접근이 권한 확인 없이 허용됩니다. 공격자는 이를 통해 Claude가 접근 가능한 파일이나 환경 변수 등의 데이터를 외부로 유출하는 은밀한 채널을 생성할 수 있습니다.
💡 쉬운 설명
Claude Code가 특정 웹사이트(HuggingFace)를 무조건 믿도록 설정되어 있어 발생하는 보안 문제입니다. 공격자가 나쁜 파일을 올려두면 Claude가 사용자 몰래 중요한 정보를 그 파일로 보내 데이터가 유출될 수 있습니다.
🇺🇸 원문 (English)
Claude Code is an agentic coding tool. From 0.2.54 until 2.1.163, because the hostname huggingface.co was pre-approved as a bare hostname for the WebFetch tool, any path on that domain—including attacker-controlled model repositories—was auto-approved without a permission prompt or being subject to --allowedTools restrictions. An attacker able to inject untrusted content into a Claude Code context could direct it to issue WebFetch requests against attacker-controlled repository files (e.g. /resolve/main/config.json), which HuggingFace counts as downloads server-side, creating a covert out-of-band channel for encoding and exfiltrating data Claude can access such as files, environment variables, or command output. Reliably exploiting this required the ability to add untrusted content into a Claude Code context window. This vulnerability is fixed in 2.1.163.
📍 영향받는 시스템
Claude Code versions 0.2.54 through 2.1.163
⚔️ 공격 벡터
Claude의 컨텍스트에 신뢰할 수 없는 콘텐츠를 주입하여 공격자가 제어하는 HuggingFace 경로로 WebFetch 요청을 유도함
🛡️ 대응 방법
Claude Code를 최신 버전인 2.1.163 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전이 2.1.163 미만인 경우 취약한 상태입니다.
claude --version 2>/dev/null || echo 'Claude Code not installed'