CVE-2025-40778 is a DNS cache-poisoning vulnerability in BIND 9 recursive resolvers caused by overly permissive acceptance of unsolicited resource records in DNS responses. Insufficient bailiwick enforcement can cause a resolver to cache forged records for a zone apex or sibling domain when processing a response associated with an attacker-controlled subdomain. Affected releases are BIND 9.11.0 through 9.16.50, 9.18.0 through 9.18.39, 9.20.0 through 9.20.13, 9.21.0 through 9.21.12, and the listed Supported Preview Edition branches 9.11.3-S1 through 9.16.50-S1, 9.18.11-S1 through 9.18.39-S1, and 9.20.9-S1 through 9.20.13-S1. Authoritative-only deployments are not affected unless recursion is enabled.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).
Repository is a small proof-of-concept for BIND 9 DNS cache poisoning (CVE-2025-40778) based on injecting unrelated records via the DNS ADDITIONAL section. Structure: - README.md: Detailed lab setup and reproduction steps (compile/install BIND 9.21.12, configure recursion/forwarding, set a forward zone for poc.lab to the attacker at 192.168.174.130, victim resolver settings, and demonstration dig commands). Mentions affected version ranges. - attacker.py: Core PoC. Implements a UDP DNS server (dnslib) that answers only queries for www.poc.lab. with an A record (192.168.174.99) and simultaneously injects an unsolicited ADDITIONAL A record for www.hacker.com. -> 192.168.174.130. For other names it returns NXDOMAIN. This models a malicious authoritative server response intended to be cached by a vulnerable BIND resolver. - server.py: Optional Flask web server bound to 0.0.0.0:443 serving a static HTML page, intended to demonstrate the impact after poisoning (victims redirected to attacker-controlled web content). Exploit capabilities: - Network-based cache poisoning against a recursive BIND resolver by leveraging improper caching/processing of unsolicited ADDITIONAL-section data. - Redirects subsequent DNS lookups for the poisoned hostname to an attacker-chosen IP (traffic redirection / potential phishing / MITM staging). No reverse shell or code execution payload is included; impact is DNS integrity compromise.
This repository provides a proof-of-concept (PoC) exploit for CVE-2025-40778, a critical DNS cache poisoning vulnerability in BIND 9 recursive resolvers that do not enforce strict bailiwick checking. The main exploit code is in 'auth_poison.py', which implements a malicious authoritative DNS server. When queried for a legitimate domain (e.g., www.test.local), it responds with both the correct answer and a forged answer for an unrelated domain (e.g., www.bank.com), mapping it to an attacker-controlled IP. This response is intended to poison the cache of a vulnerable recursive resolver, causing future queries for the poisoned domain to resolve to the attacker's IP. The repository also includes 'validate_poc_forwarder.py', a utility to verify the test environment and detect possible poisoning, and documentation files (CVE-2025-40778.md, README.md, readme.txt) that explain the vulnerability, attack scenarios, and setup instructions. The exploit is educational and requires a controlled lab environment with a BIND9 resolver and the malicious DNS server. No real-world targets or hardcoded external endpoints are present; all domains and IPs are configurable for testing. The exploit demonstrates the risk of improper DNS bailiwick checking and the potential for transparent phishing, credential theft, and large-scale redirection attacks.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
72 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A vulnerability tracked as CVE-2025-40778, covered by a TuxCare CentOS 7 local security-check plugin. The notice rates it Important and states that exploits are available.
A remotely exploitable, low-complexity vulnerability with no required privileges or user interaction that can cause high integrity impact and crosses a security scope boundary, according to the supplied CVSS vector. Exploit availability is stated.
A vulnerability addressed by the EulerOS SA-2026-3402 update for BIND-related packages; no technical flaw details are provided.
A vulnerability in the Huawei EulerOS advisory with a network-accessible, low-complexity CVSS v3 vector (AV:N/AC:L/PR:N/UI:N), high integrity impact, and scope changed. The content states that exploits are available.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.