Advisory

PYSEC-2026-2115

Also known as: CVE-2026-34452, GHSA-w828-4qhx-vxx3

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N

Dates

Published
2026-03-31 22:16 UTC
Modified
2026-07-13 07:15 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: PyPA Advisory Database · CC BY 4.0

Sources & licences