{"schemaVersion":3,"id":"CVE-2026-34452","aliases":["GHSA-w828-4qhx-vxx3","PYSEC-2026-2115","CGA-5hpv-g4wg-wmpj","CGA-rcfh-4hcx-f685","CGA-2whr-qgh3-q5w4","CGA-g65m-r34m-f5h6"],"status":"published","duplicateOf":null,"title":"Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape","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 async local filesystem memory tool in the Anthropic Python SDK validated that model-supplied paths resolved inside the sandboxed memory directory, but then returned the unresolved path for subsequent file operations. A local attacker able to write to the memory directory could retarget a symlink between validation and use, causing reads or writes to escape the sandbox. The synchronous memory tool implementation was not affected. This issue has been patched in version 0.87.0.","dates":{"published":"2026-03-31T21:32:37.537Z","modified":"2026-04-03T16:08:25.309Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.8,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.8,"severity":"medium","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","exploitability":2.6,"impact":7,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":5.8,"severity":"medium","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":5.8,"severity":"medium","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":5.8,"severity":"medium","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00135,"percentile":0.0269,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":-0.002999999999999986,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00138},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00138,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00138,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00138,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00138,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00138,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00138,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00138,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00138,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00138,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00138,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00135,"percentile":0.0269}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00138,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00138,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00135,"percentile":0.0269}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition","description":"The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/367.html"}],"affected":[{"vendor":"anthropic","product":"claude_sdk_for_python","name":"claude sdk for python","label":"claude_sdk_for_python","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.86.0, < 0.87.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.86.0, < 0.87.0","eol":null,"hubHref":"/vendor/anthropic/claude_sdk_for_python"},{"vendor":"anthropics","product":"anthropic-sdk-python","name":"anthropic-sdk-python","label":"anthropic-sdk-python","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.86.0, < 0.87.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.86.0, < 0.87.0","eol":null,"hubHref":"/vendor/anthropics/anthropic-sdk-python"},{"vendor":"chainguard","product":"open-webui","name":"open-webui","label":"open-webui","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/open-webui","purlType":"apk","versions":[{"text":"< 0.8.12-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.8.12-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.10-vllm-cuda-12.4","name":"py3.10-vllm-cuda-12.4","label":"py3.10-vllm-cuda-12.4","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.10-vllm-cuda-12.4","purlType":"apk","versions":[{"text":"< 0.18.1-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.18.1-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.12-vllm-cuda-12.4","name":"py3.12-vllm-cuda-12.4","label":"py3.12-vllm-cuda-12.4","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.12-vllm-cuda-12.4","purlType":"apk","versions":[{"text":"< 0.18.1-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.18.1-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"open-webui","name":"open-webui","label":"open-webui","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/open-webui","purlType":"apk","versions":[{"text":"< 0.8.12-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.8.12-r3","eol":null,"hubHref":null},{"vendor":"PyPI","product":"anthropic","name":"anthropic","label":"anthropic","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/anthropic","purlType":"pypi","versions":[{"text":"≥ 0.86.0, < 0.87.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.86.0, < 0.87.0","eol":null,"hubHref":null}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/anthropics/anthropic-sdk-python/security/advisories/GHSA-w828-4qhx-vxx3","label":"github.com/anthropics/anthropic-sdk-python/security/advisories/GHSA-w828-4qhx-vxx3","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Vendor Advisory"]},{"url":"https://github.com/anthropics/anthropic-sdk-python/commit/6599043eee6e86dce16953fcd1fd828052052be6","label":"github.com/anthropics/anthropic-sdk-python/commit/6599043eee6e86dce16953fcd1fd828052052be6","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.87.0","label":"github.com/anthropics/anthropic-sdk-python/releases/tag/v0.87.0","hostname":"github.com","tags":["X Refsource MISC","WEB","Advisory","Release Notes"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34452","label":"nvd.nist.gov/vuln/detail/CVE-2026-34452","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/anthropics/anthropic-sdk-python","label":"github.com/anthropics/anthropic-sdk-python","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34452.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34452.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-PCV8-MWR7-XJ34"]},"timeline":[{"kind":"published","date":"2026-03-31T21:32:37.537Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-03T16:08:25.309Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":23,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T17:19:02.601Z","stale":false,"partial":false}}