CVE-2026-34452
published medium CVSS 4.0 · 5.8Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| anthropics | — | anthropic-sdk-python>= 0.86.0, < 0.87.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| anthropics | anthropic-sdk-python | >= 0.86.0, < 0.87.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-59 CWE-59: Improper Link Resolution Before File Access ('Link Following')
- CWE-367 CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
References
3Provider assertions
2GitHub_M · cna
Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7e9587ed71d2d535cd23149dbf0a9cead7b21646084e4ac7e6fb8e193f2ebebc
- Ingested
- 23 Sep 2026, 09:11:13 UTC
- Source record
- Official CVE record