Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-25725— Claude Code Has Sandbox Escape via Persistent Configuration Injection in settings.json

EPSS 0.02% · P7
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-25725

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Claude Code Has Sandbox Escape via Persistent Configuration Injection in settings.json
Source: NVD (National Vulnerability Database)
Vulnerability Description
Claude Code is an agentic coding tool. Prior to version 2.1.2, Claude Code's bubblewrap sandboxing mechanism failed to properly protect the .claude/settings.json configuration file when it did not exist at startup. While the parent directory was mounted as writable and .claude/settings.local.json was explicitly protected with read-only constraints, settings.json was not protected if it was missing. This allowed malicious code running inside the sandbox to create this file and inject persistent hooks (such as SessionStart commands) that would execute with host privileges when Claude Code was restarted. This issue has been patched in version 2.1.2.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
违背信任边界
Source: NVD (National Vulnerability Database)
Vulnerability Title
Claude Code 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Claude Code是Anthropic开源的一个终端原生AI编程工具。 Claude Code 2.1.2之前版本存在安全漏洞,该漏洞源于bubblewrap沙盒机制在启动时若.claude/settings.json文件不存在则未能妥善保护该文件,可能导致恶意代码创建该文件并注入持久化钩子。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
anthropicsclaude-code < 2.1.2 -

II. Public POCs for CVE-2026-25725

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-25725

登录查看更多情报信息。

Same Patch Batch · anthropics · 2026-02-06 · 4 CVEs total

CVE-2026-25722Claude Code Vulnerable to Command Injection via Directory Change Bypasses Write Protection
CVE-2026-25723Claude Code Vulnerable to Command Injection via Piped sed Command Bypasses File Write Rest
CVE-2026-25724Claude Code Has Permission Deny Bypass Through Symbolic Links

IV. Related Vulnerabilities

V. Comments for CVE-2026-25725

No comments yet


Leave a comment