anthropic
Affected
- introduced
0.86.0, fixed0.87.0(ecosystem)
Fixed versions
0.87.0
Fix
- Fixed version
0.87.0pip install --upgrade anthropic==0.87.0
Advisory
Also known as: CVE-2026-34452, PYSEC-2026-2115
Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape
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.
Users on the affected versions are advised to update to the latest version.
Claude SDK for Python thanks hackerone.com/kasthelord for reporting this issue!
Medium Basis: The source's own band: MODERATE
0.86.0, fixed 0.87.0 (ecosystem)0.87.0
0.87.0pip install --upgrade anthropic==0.87.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0