---
id: CVE-2026-34452
aliases:
  - GHSA-w828-4qhx-vxx3
  - PYSEC-2026-2115
title: >-
  Claude SDK for Python: Memory Tool Path Validation Race Condition Allows
  Sandbox Escape
summary: >-
  Claude SDK for Python: Memory Tool Path Validation Race Condition Allows
  Sandbox Escape
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N'
vendor: anthropic
product: anthropic
ecosystem: pip
affected:
  - 'anthropic >= 0.86.0, < 0.87.0'
patched:
  - anthropic 0.87.0
published: '2026-04-01'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:51:03.761941935Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-w828-4qhx-vxx3'
references:
  - url: >-
      https://github.com/anthropics/anthropic-sdk-python/security/advisories/GHSA-w828-4qhx-vxx3
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-34452'
  - url: >-
      https://github.com/anthropics/anthropic-sdk-python/commit/6599043eee6e86dce16953fcd1fd828052052be6
  - url: 'https://github.com/anthropics/anthropic-sdk-python'
  - url: 'https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.87.0'
tags:
  - osv
  - pip
epss: 0.00135
epssPercentile: 0.02406
ingestedAt: '2026-07-13T18:58:04.253Z'
---

## Overview

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.

Users on the affected versions are advised to update to the latest version.

Claude SDK for Python thanks [hackerone.com/kasthelord](https://hackerone.com/kasthelord) for reporting this issue!

## Affected packages

- `anthropic >= 0.86.0, < 0.87.0`

## Remediation

Upgrade to a patched release:

- `anthropic 0.87.0`
