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

Published Mar 31, 2026
·
Updated

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!

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
pypi/anthropic>=0.86.0<0.87.0
pip/anthropic>=0.86.0<0.87.0
0.87.0
Anthropic Claude Sdk For Python Python>=0.86.0<0.87.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/anthropic to a version that resolves this vulnerability.

    Fixed in 0.87.0
  2. Upgrade

    Upgrade Anthropic Claude SDK for Python (async local filesystem memory tool) to a version that resolves this vulnerability.

    Fixed in 0.87.0

Event History

Mar 31, 2026
CVE Published
via MITRE·09:32 PM
Data Sourced
via MITRE·09:32 PM
DescriptionWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
RemedyAffected Software
Apr 1, 2026
Advisory Published
via GitHub·09:17 PM
Data Sourced
via GitHub·09:17 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-34452?

CVE-2026-34452 has been classified as a medium severity vulnerability due to its potential for sandbox escape.

2

How do I fix CVE-2026-34452?

To fix CVE-2026-34452, update the Claude SDK for Python to version 0.87.0 or later.

3

What versions of the Claude SDK for Python are affected by CVE-2026-34452?

CVE-2026-34452 affects Claude SDK for Python versions from 0.86.0 to before 0.87.0.

4

What kind of vulnerability is CVE-2026-34452?

CVE-2026-34452 is a race condition vulnerability related to memory tool path validation.

5

Can CVE-2026-34452 lead to remote code execution?

Yes, CVE-2026-34452 may allow an attacker to bypass sandbox restrictions and execute arbitrary code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203