CVE-2026-34452
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.
Weakness
- CWE-59: Improper Link Resolution Before File Access
- CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-04-03 |
Timeline
- 2026-03-31Published by the CNA21:32 UTC
- 2026-04-01GitHub advisory published (GHSA-w828-4qhx-vxx3)1 day after publication
- 2026-04-03CISA SSVC decision recorded3 days after publication
Exploit and advisory records
GitHub advisory GHSA-w828-4qhx-vxx3, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI anthropic | from 0.86.0 before 0.87.0 | 0.87.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| anthropic claude_sdk_for_python | from 0.86.0 before 0.87.0fixed in 0.87.0 | 0.87.0 |
References
- https://github.com/anthropics/anthropic-sdk-python/commit/6599043eee6e86dce16953fcd1fd828052052be6
- https://github.com/anthropics/anthropic-sdk-python/security/advisories/GHSA-w828-4qhx-vxx3
- https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.87.0
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-34452'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-34452'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-34452'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-34452'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).