Claude SDK for Python has Insecure Default File Permissions in Local Filesystem Memory Tool
Moderate severity
GitHub Reviewed
Published
Mar 31, 2026
in
anthropics/anthropic-sdk-python
•
Updated Apr 3, 2026
Description
Published by the National Vulnerability Database
Mar 31, 2026
Published to the GitHub Advisory Database
Apr 1, 2026
Reviewed
Apr 1, 2026
Last updated
Apr 3, 2026
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
lucasfutureson HackerOne for the report.References