Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 96%

CVE-2026-34452: CWE-59: Improper Link Resolution Before File Access ('Link Following') in anthropics anthropic-sdk-python

0
Medium
VulnerabilityCVE-2026-34452cvecve-2026-34452cwe-59cwe-367
Published: 03/31/2026 (03/31/2026, 21:32:37 UTC)
Source: CVE Database V5
Vendor/Project: anthropics
Product: anthropic-sdk-python

Description

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.

CVSS v4.0

Score 5.8medium

Attack Vector
Local
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

anthropics/anthropic-sdk-python
pkg:pypi/anthropics/anthropic-sdk-python
Affected versions
<0.87.0 >=0.86.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/07/2026, 23:19:42 UTC

Technical Analysis

The Claude SDK for Python's async local filesystem memory tool validated that model-supplied paths resolved inside a sandboxed memory directory but returned the unresolved path for file operations. This allowed a local attacker with write permissions to the memory directory to replace the symlink between validation and use, causing file reads or writes to occur outside the sandbox. The vulnerability affects versions >= 0.86.0 and < 0.87.0 and has been fixed in version 0.87.0. The synchronous memory tool implementation was not vulnerable.

Potential Impact

A local attacker with write access to the memory directory could exploit this vulnerability to escape the sandbox restrictions, potentially reading or writing files outside the intended sandbox environment. This could lead to unauthorized file access or modification within the local system context where the SDK is used.

Mitigation Recommendations

Upgrade the anthropic-sdk-python package to version 0.87.0 or later, where this vulnerability has been patched. No other mitigation is necessary as the fix is officially available in the updated version.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-27T18:18:14.895Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69cc424fe6bfc5ba1d44f4b9

Added to database: 03/31/2026, 21:53:19 UTC

Last enriched: 04/07/2026, 23:19:42 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 219

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses