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.
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
- Sources
- Claude Code: Data Exfiltration with DNS (CVE-2025-55284)Embrace The Red, 11 Aug 2025
- Permissive Default Allowlist Enables Unauthorized File Read and Network ExfiltrationGitHub Security Advisory (anthropics/claude-code), 15 Aug 2025
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
25 Nov 2025DemonstratedHijacked by contentGoogle Antigravity agent reads and sends credentials after web page injectionRead →8 Oct 2025DemonstratedHijacked by contentHidden pull request comments make Copilot Chat leak private code (CamoLeak)Read →6 Aug 2025DemonstratedHijacked by contentShared document makes ChatGPT send Google Drive secrets externally (AgentFlayer)Read →
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.