Skip to content
MediumNewsLLM-specific

Claude Code Flaws Allow Remote Code Execution and API Key Exfiltration

Published
Record updated
View JSON

Summary

Check Point Research disclosed multiple flaws in Anthropic's Claude Code that let a malicious repository run arbitrary shell commands and exfiltrate Anthropic API keys when a user opens it. The flaws span hooks, MCP server configuration and environment variables, and CVE-2026-21852 involves a settings file that redirects API requests via ANTHROPIC_BASE_URL before the trust prompt appears.

Mitigation

Fixed in version 1.0.87 (September 2025) for the untrusted project hooks issue, fixed in version 1.0.111 (October 2025) for CVE-2025-59536, and fixed in version 2.0.65 (January 2026) for CVE-2026-21852.