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

- Severity: Medium 5.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-03-31T21:32:37.537Z
- Modified: 2026-09-10T03:51:03.761Z
- Also known as: GHSA-w828-4qhx-vxx3, PYSEC-2026-2115
- Weaknesses: CWE-59, CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- anthropics anthropic-sdk-python: >= 0.86.0, < 0.87.0
- anthropic (PyPI): from 0.86.0 before 0.87.0
- anthropic claude_sdk_for_python: from 0.86.0 before 0.87.0

## Every score

- GitHub_M: CVSS:4.0 5.8 Medium `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`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N`

## References

- <https://github.com/anthropics/anthropic-sdk-python/security/advisories/GHSA-w828-4qhx-vxx3> (advisory, vendor-advisory, web)
- <https://github.com/anthropics/anthropic-sdk-python/commit/6599043eee6e86dce16953fcd1fd828052052be6> (fix, patch, web)
- <https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.87.0> (advisory, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34452> (advisory)
- <https://github.com/anthropics/anthropic-sdk-python> (package)

## Sources

- CVE List: [CVE-2026-34452](https://www.cve.org/CVERecord?id=CVE-2026-34452), CVE Terms of Use, modified 2026-04-03
- GitHub Advisory Database: [GHSA-w828-4qhx-vxx3](https://github.com/advisories/GHSA-w828-4qhx-vxx3), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-34452](https://nvd.nist.gov/vuln/detail/CVE-2026-34452), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-2115](https://osv.dev/vulnerability/PYSEC-2026-2115), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-34452 · Whole record: https://cve.day/CVE-2026-34452.json · Rebuilt by cve.day 2026-11-25T22:59:17.648Z
