Claude Code command allowlist permits DNS exfiltration of secrets

Claude Code command allowlist permits DNS exfiltration of secrets

Commands treated as safe network diagnostics served as an outbound data channel that bypassed the tool's approval step.

11 August 2025DemonstratedHijacked by content
Claude Code (versions before 1.0.4) · Anthropic · Global
What happened
Responsibly disclosed vulnerability, CVE-2025-55284 (CVSS 7.1); demonstrated by a researcher with no reported in-the-wild exploitation. Instructions embedded in a file or code that Claude Code was analysing could direct it to read a .env file containing API keys and place the contents into hostnames used in ping, nslookup, dig or host commands. Because these commands were on an allowlist that did not require user approval, the data left the machine through DNS lookups to an attacker-controlled domain without a confirmation prompt.
Response
Anthropic released a fix in Claude Code v1.0.4 on 6 June 2025, 11 days after the report, removing those commands from the allowlist; it published advisory GHSA-x5gv-jw7f-j6xj on 15 August 2025.
Discovered by
Johann Rehberger (Embrace The Red); reported via HackerOne on 26 May 2025.
Who was affected
Claude Code users processing untrusted files or code; secrets such as API keys in .env files
Patterns
Instructions hidden in contentData left the systemCredentials exposedWorked around a safeguard
Sources
Confidence: high · checked 24 September 2026. Published under CC BY 4.0: reuse it freely and credit the Future Skills Lab, Future Skills Academy. Seen an error or a newer development? Write to tellmemore@futureskills.academy.

Related

Incidents with the same pattern

What does this ask of people?

Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.

All 177 incidents →The Future Skills Lab