Claude Code exposed to data exfiltration via DNS requests, Anthropic has fixed it (CVE-2025-55284)
Claude Code: Data Exfiltration with DNS (CVE-2025-55284)
AI summary
Security researchers disclose a high-severity vulnerability in Claude Code where attackers can hijack Claude Code through indirect prompt injection and send sensitive information from the developer's machine (such as API keys) to external servers via DNS requests. Anthropic fixed it in early June. The author found that although Claude Code's Bash tool requires user approval, commands like ping, nslookup, host, and dig are automatically allowed in the whitelist, so they concatenated the contents of the .env file into the subdomain of a ping request, forming a DNS exfiltration channel, and also verified that environment variables can be leaked via /proc/PID/environ.