Medium
osv
ยท
GHSA-q5f5-3gjm-7mfm
Claude SDK for Python has Insecure Default File Permissions in Local Filesystem Memory Tool
Published Apr 1, 2026
CVSS 4.0
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`](https://hackerone.com/lucasfutures) on HackerOne for the report.
Affected AI Products
anthropic