Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2025-40778: DNS Cache Poisoning via Unsolicited Resource Records in ISC BIND 9

Published Oct 22, 2025 · Updated 3 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days4 mentions · peak 2 in a dayToday
CVSS8.6High · v3.1
EPSS0.77%56th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2025-40778CWE-349 · Acceptance of Extraneous Untrusted…

CVE-2025-40778 is a DNS cache-poisoning vulnerability in ISC BIND 9 caused by overly permissive acceptance of resource records from DNS responses. Insufficient record checking can allow unsolicited or forged records to enter a recursive resolver's cache. In shared-zone hosting scenarios, a response associated with an attacker-controlled subdomain can introduce malicious records for the zone apex or sibling domains, undermining isolation between independently controlled names. Affected versions are 9.11.0–9.16.50, 9.18.0–9.18.39, 9.20.0–9.20.13, 9.21.0–9.21.12, 9.11.3-S1–9.16.50-S1, 9.18.11-S1–9.18.39-S1, and 9.20.9-S1–9.20.13-S1. Successful exploitation allows remote unauthenticated attackers to manipulate cached DNS data and redirect subsequent resolution.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Forged DNS records can compromise the integrity of answers returned to clients sharing the poisoned resolver cache. Malicious nameserver or glue records can redirect resolution for a zone apex or sibling domains to attacker-controlled infrastructure, enabling domain hijacking and traffic redirection. The primary established impact is DNS integrity compromise; code execution, privilege escalation, and direct confidentiality compromise are not established for this vulnerability.

Mitigation

If you can’t patch tonight, do this now.

Restrict recursion to trusted clients and disable recursive service where it is unnecessary. Enable DNSSEC validation where applicable to protect signed DNS data; this does not provide equivalent protection for unsigned zones. Network source-address validation can reduce opportunities for spoofed-response injection but is not a substitute for patching. On affected F5 BIG-IP deployments, disable 'Use BIND Server on BIG-IP' in the DNS profile if BIND is unnecessary, or configure BIND with recursion set to 'no'. Disabling BIND can affect configurations that use it as a fallback.

Remediation

Patch, then assume compromise.

Upgrade to a supported BIND release containing the fix or install the operating-system vendor's backported security updates. Recommended patched releases include BIND 9.18.41 or later, 9.20.15 or later, 9.21.14 or later, and Supported Preview Edition 9.18.41-S1 or 9.20.15-S1, as applicable. Migrate unsupported branches to a supported fixed branch. For vendor-bundled BIND components, apply the corresponding product update rather than relying solely on the upstream version number.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2025-40778This 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.nehkark · Disclosed Oct 29, 2025 · python · networkPoCBIND-9-Cache-Poisoning-PoC---CVE-2025-40778Repository 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.sirbuvladste · Disclosed Jan 9, 2026 · python · network (DNS cache poisoning against recursive resolver via malicious authoritative response / ADDITIONAL section injection)PoC
FAQ

Frequently asked questions

Is CVE-2025-40778 exploited in the wild?
As of Nov 14, 2026, Mallory has no reports of CVE-2025-40778 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2025-40778?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2025-40778, the earliest disclosed Oct 29, 2025.
Is there a patch for CVE-2025-40778?
Upgrade to a supported BIND release containing the fix or install the operating-system vendor's backported security updates. Recommended patched releases include BIND 9.18.41 or later, 9.20.15 or later, 9.21.14 or later, and Supported Preview Edition 9.18.41-S1 or 9.20.15-S1, as applicable.
How severe is CVE-2025-40778?
CVE-2025-40778 has a CVSS v3.1 score of 8.6 (High) and an EPSS score of 0.77% (56th percentile) as of Nov 14, 2026.
Activity feed

Recent activity

79 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Nov 14, 2026Rocky Linux 9.2 [CIQ] Security Update: bind / bind-chroot / bi... | Tenable®A vulnerability addressed by the BIND security update for Rocky Linux 9.2 under CIQ LTS. The content does not describe its technical cause or impact. Nessus identifies affected packages using self-reported version information rather than testing exploitation. The advisory-level statement that exploits are available does not identify which individual CVEs have exploits.Read more ↗tenable nessus pluginsNews · Nov 7, 2026EulerOS Virtualization 2.15.1 : dhcp (EulerOS-SA-2026-4548) | Tenable®A BIND 9 DNS cache-poisoning vulnerability that allows attackers to inject forged records through overly permissive acceptance of answer records. The advisory identifies affected dhcp packages on EulerOS Virtualization 2.15.1. The plugin assigns a CVSS v3 base score of 8.6 and detects exposure using self-reported package versions rather than testing exploitation.Read more ↗tenable nessus pluginsNews · Nov 7, 2026EulerOS Virtualization 2.15.0 : dhcp (EulerOS-SA-2026-4590) | Tenable®A vulnerability affecting the dhcp package on Huawei EulerOS UVP 2.15.0. The supplied CVSS v3 vector describes network exploitation with low complexity, no privileges or user interaction required, changed scope, and high integrity impact. The content does not describe the underlying flaw. Exploits and a patch are reported as available.Read more ↗tenable nessus pluginsNews · Nov 3, 2026EulerOS Virtualization 2.13.0 : bind (EulerOS-SA-2026-1625) | Tenable®A DNS cache-poisoning vulnerability caused by overly permissive acceptance of records in BIND answers. Under certain circumstances, attackers can inject forged data into the cache. Affected releases include 9.11.0–9.16.50, 9.18.0–9.18.39, 9.20.0–9.20.13, 9.21.0–9.21.12, and specified subscription editions. The advisory identifies affected bind packages in EulerOS Virtualization 2.13.0 and recommends updating them. Exploit availability is reported at the combined plugin level; no exploitation in the wild is stated.Read more ↗
+18 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity48Community discussion across Reddit, Mastodon, and other social sources.