CVE-2026-34452 Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/anthropics/anthropic-sdk-python/security/advisories/GHSA-w828-4qhx-vxx3 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/anthropics/anthropic-sdk-python/commit/6599043eee6e86dce16953fcd1fd828052052be6 patch
- github.com product
- https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.87.0 release-notes vendor-advisory
- github.com