Skip to content

CVE-2026-34452 Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape

MediumCVSS 5.8 EPSS 0.15%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
Anthropic claude sdk for python >= 0.86.0, < 0.87.0 0.87.0 Fixed
pypi anthropic(PyPI) = 0.86.0; >= 0.86.0, < 0.87.0 0.87.0 Fixed
anthropics anthropic-sdk-python = >= 0.86.0, < 0.87.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi anthropic(PyPI) >= 0.86.0, < 0.87.0 0.87.0
pypi anthropic(PyPI) = 0.86.0 No fix listed
anthropics anthropic-sdk-python = >= 0.86.0, < 0.87.0 No fix listed
Anthropic claude sdk for python >= 0.86.0, < 0.87.0 0.87.0

References