🇰🇷 한글 설명
Anthropic Python SDK 0.86.0~0.87.0 미만 버전의 비동기 로컬 파일시스템 메모리 도구에서 경로 검증 후 심볼링크를 통한 샌드박스 우회 취약점입니다. 메모리 디렉토리 쓰기 권한이 있는 로컬 공격자가 검증과 사용 사이의 간격을 이용해 심볼링크를 조작하여 샌드박스 외부 파일 접근이 가능합니다.
💡 쉬운 설명
Python 프로그램이 사용하는 Claude SDK의 파일 저장 기능에서 심볼링크를 통해 보호된 폴더 밖의 파일에 접근할 수 있습니다. 시스템에 접근할 수 있는 공격자가 파일을 조작하여 민감 정보를 읽거나 손상시킬 수 있습니다.
🇺🇸 원문 (English)
The Claude SDK for Python provides access to the Claude API from Python applications. From version 0.86.0 to before version 0.87.0, the async local filesystem memory tool in the Anthropic Python SDK validated that model-supplied paths resolved inside the sandboxed memory directory, but then returned the unresolved path for subsequent file operations. A local attacker able to write to the memory directory could retarget a symlink between validation and use, causing reads or writes to escape the sandbox. The synchronous memory tool implementation was not affected. This issue has been patched in version 0.87.0.
📍 영향받는 시스템
Anthropic Python SDK 0.86.0 ~ 0.86.x (0.87.0 미만)
⚔️ 공격 벡터
메모리 디렉토리 쓰기 권한 보유 로컬 공격자가 TOCTOU(검증과 사용 사이) 취약점을 이용해 심볼링크 조작으로 경로 우회
🛡️ 대응 방법
pip install --upgrade 'anthropic>=0.87.0' 실행하여 0.87.0 이상으로 업그레이드
🔧 검증 코드
출력된 버전이 0.87.0 이상이면 안전, 0.86.0~0.86.x면 취약하므로 즉시 업그레이드 필요
python -c "import anthropic; print(anthropic.__version__)"