Advisory

GHSA-w828-4qhx-vxx3

Also known as: CVE-2026-34452, PYSEC-2026-2115

Summary

Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape

Details

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.

Claude SDK for Python thanks hackerone.com/kasthelord for reporting this issue!

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-01 21:17 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

anthropic

PyPI · All systems

Affected

  • introduced 0.86.0, fixed 0.87.0 (ecosystem)

Fixed versions

0.87.0

Fix

  • Fixed version 0.87.0
    pip install --upgrade anthropic==0.87.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences