Claude SDK for Python has Insecure Default File Permissions in Local Filesystem Memory ToolGHSA-q5f5-3gjm-7mfm
Fix: anthropics/anthropic-sdk-python@715030cGHSA-q5f5-3gjm-7mfm is a Incorrect Default Permissions vulnerability in anthropic. A fix is available for anthropic — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-q5f5-3gjm-7mfm.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
anthropicReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
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.
Users on the affected versions are advised to update to the latest version.
Claude SDK for Python thanks lucasfutures on HackerOne for the report.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | anthropic | ≥ 0.86.0&&< 0.87.0 | 0.87.0pip install --upgrade 'anthropic==0.87.0' |
Affected Products
claude sdk for pythonanthropicDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for anthropic, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update anthropic to 0.87.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-q5f5-3gjm-7mfm is resolved across your whole dependency graph.
Workarounds
Close the privilege gap rather than the entry point: audit which accounts, roles and service identities can reach the affected operation, drop the component to the least privilege it actually needs, and review file and directory permissions created by earlier installs — a default left in place is what makes this reachable.
Frequently Asked Questions
Is GHSA-q5f5-3gjm-7mfm in your dependencies?
Find it across PyPI, including transitive dependencies.