GHSA-q5f5-3gjm-7mfm

Suggest an improvement
Source
https://github.com/advisories/GHSA-q5f5-3gjm-7mfm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-q5f5-3gjm-7mfm/GHSA-q5f5-3gjm-7mfm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q5f5-3gjm-7mfm
Aliases
Downstream
CGA (4)
ECHO (1)
Published
2026-04-01T21:15:30Z
Modified
2026-09-10T03:51:02Z
Severity
  • 4.8 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-276",
        "CWE-732"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-04-01T21:15:30Z",
    "nvd_published_at":  "2026-03-31T22:16:19Z",
    "severity":  "MODERATE"
}
References

Affected packages

PyPI / anthropic

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0.86.0
Fixed
0.87.0

Affected versions

0.*
0.86.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-q5f5-3gjm-7mfm/GHSA-q5f5-3gjm-7mfm.json"