Skip to content
AnthropicGHSA-w828-4qhx-vxx3

Memory Tool Path Validation Race Condition Allows Sandbox Escape

Medium5.8CVE-2026-34452 · Published Mar 31, 2026

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. Users on the affected versions are advised to update to the latest version. Thank you to hackerone.com/kasthelord for reporting this issue!

GitHub advisory

Affected versions

PackageAffectedFixed in
anthropic
PyPI
>= 0.86.0, < 0.87.00.87.0
Details and references
CVSS 4.0
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
Severity from
GitHub (reviewed advisory)
Weakness
CWE-59, CWE-367

More Anthropic advisories

All Anthropic

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.