Trust Boundary Violation in Claude Code - CVE-2026-25725
Published: April 30, 2026
Claude Code
Anthropic
Description
The vulnerability allows a remote attacker to execute arbitrary code with host privileges.
The vulnerability exists due to trust boundary violation in the .claude/settings.json configuration file handling when malicious code running inside the sandbox creates a missing settings.json file. A remote attacker can inject persistent hooks such as SessionStart commands to execute arbitrary code with host privileges.
Exploitation requires that the settings.json file does not exist when Claude Code starts, and the injected hooks execute when Claude Code is restarted.