Advisory

GHSA-q5f5-3gjm-7mfm

Also known as: CVE-2026-34450, PYSEC-2026-2114

Summary

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

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-01 21:15 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

anthropic

PyPI · All systems

Affected

  • introduced 0.86.0, fixed 0.87.0 (ecosystem)

Fixed versions

0.87.0

Fix

  • Fixed version 0.87.0
    pip install --upgrade anthropic==0.87.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences