AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

AnthropicGHSA-w828-4qhx-vxx3

Memory Tool Path Validation Race Condition Allows Sandbox Escape

Anthropic

CVE-2026-34452 · Published Mar 31, 2026

Medium5.8
Fix: upgrade to 0.87.0 or later
GitHub advisory

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!

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