{"answers":{"affected":"3 open source packages ship an affected version, including anthropic. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-34450 in the wild and no public exploit code.","fix":"Upgrade anthropic to 0.87.0 or later.","what":"CVE-2026-34450 is a medium-severity vulnerability in anthropics anthropic-sdk-python, published on 31 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-34450 and fix it if it is affected.\n\nWhat it is: CVE-2026-34450 is a medium-severity vulnerability in anthropics anthropic-sdk-python, published on 31 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-34450 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- anthropic (PyPI): affected from 0.86.0; fixed in 0.87.0\n- anthropic (PyPI): affected from 0.86.0; fixed in 0.87.0\n- anthropic (PyPI): affected from 0.86.0; fixed in 0.87.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-34450/ (Markdown: https://insights.sbomify.com/CVE-2026-34450/index.md)","id":"CVE-2026-34450","markdown":"https://insights.sbomify.com/CVE-2026-34450/index.md","name":"CVE-2026-34450","record":{"aliases":["ECHO-3bbc-736a-5aa2","GHSA-q5f5-3gjm-7mfm","PYSEC-2026-2114"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python SDK","requires_auth":"low_privilege","summary":"Local attackers can read or modify agent memory files due to insecure default permissions in the Anthropic Python SDK.","user_interaction":"not_required","vuln_class":"misconfiguration"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"claude_sdk_for_python","vendor":"anthropic"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"},{"id":"CWE-276","name":"Incorrect Default Permissions"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Claude SDK for Python: Insecure Default File Permissions in Local Filesystem Memory Tool","id":"CVE-2026-34450","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"misconfiguration","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Claude SDK for TypeScript: Memory Tool Path Validation Allows Sandbox Escape to Sibling Directories","id":"CVE-2026-34451"},"packages":[{"ecosystem":"PyPI","fixed":["0.87.0"],"introduced":["0.86.0"],"last_affected":[],"package":"anthropic","purl":null,"source":"GHSA-q5f5-3gjm-7mfm"},{"ecosystem":"PyPI","fixed":["0.87.0"],"introduced":["0.86.0"],"last_affected":[],"package":"anthropic","purl":"pkg:pypi/anthropic","source":"GHSA-q5f5-3gjm-7mfm"},{"ecosystem":"PyPI","fixed":["0.87.0"],"introduced":["0.86.0"],"last_affected":[],"package":"anthropic","purl":"pkg:pypi/anthropic","source":"PYSEC-2026-2114"}],"prev":{"headline":"SiYuan: Cross-Origin RCE via Permissive CORS Policy and JavaScript Snippet Injection","id":"CVE-2026-34449"},"products":["anthropic-sdk-python"],"published":"2026-03-31","related":[{"cvss_score":5.8,"headline":"Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape","id":"CVE-2026-34452","kev_date_added":null,"published":"2026-03-31"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-01","vendors":["anthropics"]},"summary":"Local attackers can read or modify agent memory files due to insecure default permissions in the Anthropic Python SDK.","url":"https://insights.sbomify.com/CVE-2026-34450/"}