{"id":"CVE-2026-34450","aliases":["CVE-2026-34450","GHSA-q5f5-3gjm-7mfm","PYSEC-2026-2114"],"related":[],"kind":"vulnerability","state":"published","title":"Claude SDK for Python: Insecure Default File Permissions in Local Filesystem Memory Tool","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nUsers on the affected versions are advised to update to the latest version.\n\nClaude SDK for Python thanks [`lucasfutures`](https://hackerone.com/lucasfutures) on HackerOne for the report.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-03-31T21:32:53.617Z","modified":"2026-09-10T03:51:02.766Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"}],"cwes":["CWE-276","CWE-732"],"affected":[{"ranges":[{"version":">= 0.86.0, < 0.87.0","status":"affected"}],"vendor":"anthropics","product":"anthropic-sdk-python","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.86.0","status":"affected","fixed":"0.87.0"}],"ecosystem":"PyPI","package":"anthropic","purl":"pkg:pypi/anthropic","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.86.0","fixed":"0.87.0"}],"vendor":"anthropic","product":"claude_sdk_for_python","cpe":"cpe:2.3:a:anthropic:claude_sdk_for_python:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0.86.0","status":"affected","fixed":"0.87.0"}],"ecosystem":"PyPI","package":"anthropic","purl":"pkg:pypi/anthropic","source":"pysec"}],"references":[{"url":"https://github.com/anthropics/anthropic-sdk-python/security/advisories/GHSA-q5f5-3gjm-7mfm","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/anthropics/anthropic-sdk-python/commit/715030ceb4d6dd8d3546e999c680e29532bf1255","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.87.0","tags":["advisory","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34450","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/anthropics/anthropic-sdk-python","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-01T13:35:12.188Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34450","url":"https://www.cve.org/CVERecord?id=CVE-2026-34450","licence":"CVE Terms of Use","modified":"2026-04-01T13:35:18.879Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q5f5-3gjm-7mfm","url":"https://github.com/advisories/GHSA-q5f5-3gjm-7mfm","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:02.766Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34450","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34450","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2114","url":"https://osv.dev/vulnerability/PYSEC-2026-2114","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:14.194Z"}],"updatedAt":"2026-11-25T22:59:17.646Z","epss":{"score":0.00143,"percentile":0.0381,"date":"2026-12-01T12:00:22.000Z"}}