🇰🇷 한글 설명
Anthropic Python SDK 0.86.0~0.86.x의 로컬 파일시스템 메모리 도구가 0o666 권한으로 메모리 파일을 생성해 표준 umask 환경에서 누구나 읽을 수 있고 일부 환경에서는 쓰기까지 가능한 취약점입니다. 0.87.0에서 수정되었습니다.
💡 쉬운 설명
클로드 파이썬 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 local filesystem memory tool in the Anthropic Python SDK created memory files with mode 0o666, leaving them world-readable on systems with a standard umask and world-writable in environments with a permissive umask such as many Docker base images. A local attacker on a shared host could read persisted agent state, and in containerized deployments could modify memory files to influence subsequent model behavior. Both the synchronous and asynchronous memory tool implementations were affected. This issue has been patched in version 0.87.0.
📍 영향받는 시스템
Anthropic Python SDK 0.86.0~0.86.x (claude-agent-sdk)
⚔️ 공격 벡터
공유 호스트의 로컬 사용자가 0o666 권한 메모리 파일 읽기/쓰기
🛡️ 대응 방법
Anthropic Python SDK 0.87.0 이상으로 업그레이드
🔧 검증 코드
설치 버전이 0.87.0 미만이면 취약
pip show anthropic 2>/dev/null | grep -i version || echo 'anthropic SDK 미설치'