Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. anthropic
  4. ›
  5. CVE-2026-34452

CVE-2026-34452: Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape

April 1, 2026 (updated April 24, 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.

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

References

  • github.com/advisories/GHSA-w828-4qhx-vxx3
  • github.com/anthropics/anthropic-sdk-python
  • github.com/anthropics/anthropic-sdk-python/commit/6599043eee6e86dce16953fcd1fd828052052be6
  • github.com/anthropics/anthropic-sdk-python/releases/tag/v0.87.0
  • github.com/anthropics/anthropic-sdk-python/security/advisories/GHSA-w828-4qhx-vxx3
  • nvd.nist.gov/vuln/detail/CVE-2026-34452

Code Behaviors & Features

Detect and mitigate CVE-2026-34452 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.86.0 before 0.87.0

Fixed versions

  • 0.87.0

Solution

Upgrade to version 0.87.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

pypi/anthropic/CVE-2026-34452.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:24 +0000.