CVE-2026-34450
JSON

4.8medium

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

Severity
4.8medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-q5f5-3gjm-7mfmPYSEC-2026-2114

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

Product or packageVersionsReported by
anthropics anthropic-sdk-python>= 0.86.0, < 0.87.0CVE List
anthropic (PyPI)from 0.86.0 before 0.87.0GitHub Advisory Database, PyPA Advisory Database
anthropic claude_sdk_for_pythonfrom 0.86.0 before 0.87.0NVD

All scores

GitHub_M4.8medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
NVD4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
PyPA Advisory Database4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Classification

CWE-276CWE-732

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

El SDK de Claude para Python proporciona acceso a la API de Claude desde aplicaciones Python. Desde la versión 0.86.0 hasta antes de la versión 0.87.0, la herramienta de memoria del sistema de archivos local en el SDK de Python de Anthropic creaba archivos de memoria con el modo 0o666, dejándolos legibles para todos en sistemas con un umask estándar y escribibles para todos en entornos con un umask permisivo, como muchas imágenes base de Docker. Un atacante local en un host compartido podría leer el estado persistido del agente, y en despliegues contenerizados podría modificar archivos de memoria para influir en el comportamiento posterior del modelo. Ambas implementaciones de la herramienta de memoria, tanto síncronas como asíncronas, se vieron afectadas. Este problema ha sido parcheado en la versión 0.87.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-34450 changed 2026-04-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-q5f5-3gjm-7mfm changed 2026-09-10CC-BY-4.0
NVDCVE-2026-34450 changed 2026-07-24Public domain
PyPA Advisory DatabasePYSEC-2026-2114 changed 2026-07-13CC-BY-4.0