🔍 CVE-2026-34451

5.4
CVSS Score
MEDIUM
2026-03-31
2026-07-24 21:10
✅ 완료

🇰🇷 한글 설명

Claude TypeScript SDK의 0.79.0 버전부터 0.81.0 미만 버전에서 로컬 파일 시스템 메모리 도구가 경로를 검증할 때 경로 구분자를 누락하는 취약점이 발견되었습니다. 프롬프트 인젝션을 통해 조작된 경로를 입력하면 샌드박스 디렉토리를 벗어나 인접한 디렉토리의 파일을 읽거나 쓸 수 있습니다.

💡 쉬운 설명

AI가 파일을 다룰 때 경로를 확인하는 과정에서 실수로 옆 동네 폴더까지 허용해버리는 보안 구멍이 있었습니다. 해커가 교묘한 명령을 내리면 AI가 원래 접근하면 안 되는 중요한 파일들을 읽거나 수정할 수 있습니다.

🇺🇸 원문 (English)

Claude SDK for TypeScript provides access to the Claude API from server-side TypeScript or JavaScript applications. From version 0.79.0 to before version 0.81.0, the local filesystem memory tool in the Anthropic TypeScript SDK validated model-supplied paths using a string prefix check that did not append a trailing path separator. A model steered by prompt injection could supply a crafted path that resolved to a sibling directory sharing the memory root's name as a prefix, allowing reads and writes outside the sandboxed memory directory. This issue has been patched in version 0.81.0.

📍 영향받는 시스템

Claude SDK for TypeScript (versions 0.79.0 to < 0.81.0)

⚔️ 공격 벡터

프롬프트 인젝션을 통해 경로 구분자가 없는 조작된 파일 경로를 전달하여 샌드박스 외부 접근

🛡️ 대응 방법

Claude TypeScript SDK를 0.81.0 이상의 최신 버전으로 업데이트

🔧 검증 코드

출력 결과에 0.79.x 또는 0.80.x 버전이 표시되면 취약한 버전이 설치된 상태입니다.

Shell / Script
npm list @anthropic-ai/sdk | grep -E '@anthropic-ai/sdk@(0\.[79|80]\.)'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N