Documented Incident · INC-2025-59536 · Critical severity
Agentic Coding CLI Pre-Trust Repository Hook and MCP Config Auto-Execution RCE
CVE-2025-59536 (published October 3, 2025, disclosed by Check Point Research) affected Anthropic Claude Code versions prior to `1.0.111`. A flaw in startup trust-dialog sequencing allowed malicious hooks or MCP server definitions embedded inside a cloned repository's configuration files to trigger execution before the user explicitly approved trusting the directory. Simply cloning and opening an untrusted open-source repository in the coding CLI exposed developers to arbitrary local command execution. Anthropic patched the initialization sequence in v1.0.111 to guarantee zero hook or MCP execution prior to explicit trust confirmation.
Incident dossier metadata
- Case ID
INC-2025-59536- Classification
- Incident
- Date
- Severity
- Critical
- Sector
- Software Development & AI Tooling
- Attack vector
- Supply Chain
- System type
- Terminal Agentic Coding CLIs
- CVE / reference
CVE-2025-59536- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-59536
Defensive takeaway
Enforce hard pre-trust gates that prevent any repository hook, plugin, or MCP server definition from initializing before explicit user consent.
Mapped AI security techniques
- Supply Chain Compromise: AI Agent Tool AML.T0010.005
- User Execution: Poisoned AI Agent Tool AML.T0011.002
- Command and Scripting Interpreter AML.T0050
- Modify AI Agent Configuration AML.T0081
- Machine Compromise: Local AI Agent AML.T0112.000
- Event Triggered Execution AML.T0142
Mapped defensive controls
- Verify AI Artifacts AML.M0014
- Enforce Access Controls for AI Agent Tools AML.M0028
- Human In-the-Loop for AI Agent Actions AML.M0029
Source citation records
- NVD Record CVE-2025-59536: Claude Code Pre-Trust Hook & MCP Execution RCE · NIST National Vulnerability Database (NVD) ·