Skip to content
OpenAdvisories
Medium · 4.8 CVE-2026-34450 EUVD-2026-17677GHSA-q5f5-3gjm-7mfmPYSEC-2026-2114

Claude SDK for Python: Insecure Default File Permissions in Local Filesystem Memory Tool

Published Mar 31, 2026 · Updated Apr 1, 2026 · Assigned by GitHub_M

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 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. This issue has been patched in version 0.87.0.

Affected products

VendorProductAffectedFixed
anthropics anthropic-sdk-python >= 0.86.0, < 0.87.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling open-webui 0.8.12-r3 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI anthropic >= 0.86.0, < 0.87.0 0.87.0 GHSA-q5f5-3gjm-7mfm

References