🇰🇷 한글 설명
Claude Code의 캐시 최적화 프록시인 claude-code-cache-fix의 특정 버전에서 발생하는 취약점입니다. tools/quota-statusline.sh 스크립트가 사용자 제어 가능한 페이로드를 파이썬 문자열 내에 직접 삽입하는 과정에서 코드 주입이 가능해집니다. 공격자는 특수 문자를 사용하여 파이썬 실행 흐름을 조작하고 사용자 프로세스에서 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
프로그램이 사용자의 입력을 처리할 때 보안 검사를 제대로 하지 않아 발생하는 문제입니다. 악의적인 코드가 포함된 데이터를 보내면 컴퓨터가 이를 명령어로 착각하여 실행하게 됩니다.
🇺🇸 원문 (English)
claude-code-cache-fix is a cache optimization proxy for Claude Code. From 3.5.0 to before 3.5.2, tools/quota-statusline.sh (introduced in v3.5.0) interpolates Claude Code's hook stdin payload directly into a Python triple-quoted string literal. A ''' byte sequence in any user-controlled field of the payload closes the literal early and lets following bytes execute as Python in the user's Claude Code process. This vulnerability is fixed in 3.5.2.
📍 영향받는 시스템
claude-code-cache-fix v3.5.0 ~ v3.5.1
⚔️ 공격 벡터
사용자 제어 가능한 페이로드에 파이썬 삼중 따옴표(''' )를 삽입하여 문자열 리터럴을 종료시킨 후 임의의 파이썬 코드를 실행
🛡️ 대응 방법
claude-code-cache-fix를 v3.5.2 이상 버전으로 업데이트
🔧 검증 코드
출력된 버전이 3.5.2 미만(3.5.0 또는 3.5.1)이면 취약한 상태입니다.
pip show claude-code-cache-fix | grep Version