CVE-2026-34450: Anthropic Claude SDK For Python Has Vulnerability
MODERATECVE-2026-34450 is a MODERATE claude sdk for python has vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Anthropic libraries in the PyPI ecosystem. The issue involves claude sdk for python has insecure default file permissions in local filesystem memory tool. Remediation is available by upgrading affected packages to version 0.87.0.
CVE-2026-34450 at a Glance
How to Fix CVE-2026-34450
To remediate this vulnerability, upgrade all affected Anthropic dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install anthropic>=0.87.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show anthropic
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-34450, inspect your installed packages using pip:
pip show anthropic
Analyze the terminal output to locate any version of Anthropic in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.87.0), your application is affected.
Note: The pip show anthropic command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Anthropic, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-34450 Affected Anthropic Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
anthropic
|
PyPI |
≥ 0.86.0
< 0.87.0
|
0.87.0
|
References
Frequently Asked Questions
What is CVE-2026-34450?
Which Anthropic versions are affected?
What version fixes CVE-2026-34450?
Is anthropic affected?
What CWE is associated with CVE-2026-34450?
How can I check PyPI dependencies for CVE-2026-34450?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q5f5-3gjm-7mfm",
"modified" : "2026-04-01T21:15:30Z",
"published" : "2026-04-01T21:15:30Z",
"aliases" : [ "CVE-2026-34450" ],
"summary" : "Claude SDK for Python has Insecure Default File Permissions in Local Filesystem Memory Tool",
"details" : "The local filesystem memory tool in the Anthropic Python SDK created memory files with mode 0o666, leaving them world-readable on systems with a standard umask and world-writable in environments with a permissive umask such as many Docker base images. A local attacker on a shared host could read persisted agent state, and in containerized deployments could modify memory files to influence subsequent model behavior. Both the synchronous and asynchronous memory tool implementations were affected.\n\nUsers on the affected versions are advised to update to the latest version.\n\nClaude SDK for Python thanks [`lucasfutures`](https://hackerone.com/lucasfutures) on HackerOne for the report.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "anthropic"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.86.0"
}, {
"fixed" : "0.87.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/anthropics/anthropic-sdk-python/security/advisories/GHSA-q5f5-3gjm-7mfm"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-34450"
}, {
"type" : "WEB",
"url" : "https://github.com/anthropics/anthropic-sdk-python/commit/715030ceb4d6dd8d3546e999c680e29532bf1255"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/anthropics/anthropic-sdk-python"
}, {
"type" : "WEB",
"url" : "https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.87.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-276", "CWE-732" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-01T21:15:30Z",
"nvd_published_at" : "2026-03-31T22:16:19Z"
}
}