{"id":"CVE-2026-34452","aliases":["GHSA-w828-4qhx-vxx3","PYSEC-2026-2115"],"title":"Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape","summary":"Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape","severity":"medium","cvss":5.3,"cvssVector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","vendor":"anthropic","product":"anthropic","ecosystem":"pip","affected":["anthropic >= 0.86.0, < 0.87.0"],"patched":["anthropic 0.87.0"],"published":"2026-04-01","updated":"2026-09-10","sourceUpdated":"2026-09-10T03:51:03.761941935Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-w828-4qhx-vxx3","references":[{"url":"https://github.com/anthropics/anthropic-sdk-python/security/advisories/GHSA-w828-4qhx-vxx3"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34452"},{"url":"https://github.com/anthropics/anthropic-sdk-python/commit/6599043eee6e86dce16953fcd1fd828052052be6"},{"url":"https://github.com/anthropics/anthropic-sdk-python"},{"url":"https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.87.0"}],"tags":["osv","pip"],"epss":0.00138,"epssPercentile":0.03578,"ingestedAt":"2026-07-13T18:58:04.253Z","slug":"CVE-2026-34452","body":"## Overview\n\nThe 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.\n\nUsers on the affected versions are advised to update to the latest version.\n\nClaude SDK for Python thanks [hackerone.com/kasthelord](https://hackerone.com/kasthelord) for reporting this issue!\n\n## Affected packages\n\n- `anthropic >= 0.86.0, < 0.87.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `anthropic 0.87.0`","depth":"sunlit","depthScore":29,"depthScoreParts":{"impact":29.2,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}