NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Anthropic SDKs

CVE-2026-34450: Claude SDK for Python has Insecure Default File Permissions in Local Filesystem Memory Tool

mediumCVSS 4.0 4.8GHSA-q5f5-3gjm-7mfm

The local filesystem memory tool in the Anthropic Python SDK 0.86.x created memory files with mode 0o666. Other local users could read saved agent state, and in containers with a permissive umask they could also edit it to change later model behavior. Upgrade the anthropic package to 0.87.0.

Published Apr 1, 2026 · Updated Apr 3, 2026 · Analysis Oct 31, 2026

What an attacker can do

The beta built-in memory tool stores what an agent remembers as files on disk. It opened them with mode 0o666 and left directories at the default 0o777. With a standard umask of 022 the files end up world-readable. With a permissive umask, as in many Docker base images, they are world-writable too. Both the sync and async implementations were affected.

The attacker needs local access to the same host or container filesystem, as a different user. On a shared host they can read persisted agent state, which may hold user data or secrets the agent noted. In a container setup they can rewrite memory files. The model reads those files back later, so a planted note acts like an injected instruction and shapes later behavior. Severity is medium (CVSS 4.0 score 4.8), because it is local only.

Who is affected

The pip package anthropic, versions >= 0.86.0 and < 0.87.0. You are exposed only if you use the local filesystem memory tool in the SDK's beta tools. Check the installed version:

pip show anthropic

Also inspect existing memory directories. Files created before the upgrade keep their old permissions.

anthropic

Ecosystem
PyPI
Affected
>= 0.86.0, < 0.87.0
Fixed in
0.87.0
Check
pip show anthropic

How to fix it

Upgrade to anthropic 0.87.0:

pip install --upgrade anthropic==0.87.0

The fix (commit 715030ceb4) sets new memory files to 0o600 and new directories to 0o700 in _beta_builtin_memory_tool.py. It does not change files that already exist, so tighten those by hand and review their contents for tampering.

How to tell if you were hit

List your memory directory and look for files with group or other permission bits, for example with ls -l or find using -perm. Check file contents and modification times for entries the agent did not write. Compare the memory with what you expect, since edited notes can steer later runs. The advisory gives no log signature.

Original advisory

From the GitHub Advisory Database (CC BY 4.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.

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

Claude SDK for Python thanks `lucasfutures` on HackerOne for the report.

Credited to gn00295120.

Questions

Is the Anthropic Python SDK 0.86.0 affected by CVE-2026-34450?

Yes, if you use the local filesystem memory tool. The affected range is >= 0.86.0 and < 0.87.0. Version 0.87.0 fixes it.

Can a remote attacker exploit this?

No. The attack vector is local. The attacker needs access to the same filesystem as another user, such as a shared host or a container.

Do I need to fix existing memory files after upgrading?

Yes. The fix only changes the mode for newly created files and directories, so set 0o600 and 0o700 on the existing ones.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Anthropic SDKs vulnerabilities

All Anthropic SDKs entries