BIND 9 DNS Cache Poisoning via Predictable Source Port and Query ID
CVE-2025-40780 is a vulnerability in BIND 9 caused by a weakness in the pseudo-random number generator (PRNG) used to select the source port and DNS query ID for outgoing resolver queries. These values are key entropy sources used by recursive and forwarding resolvers to validate replies and resist spoofed DNS responses. Under specific circumstances, the PRNG output becomes predictable, allowing an attacker to anticipate the source port and query ID that BIND will use for an outstanding query. With those values predicted, an attacker can race the legitimate upstream response with a forged DNS reply that matches the expected tuple and cause the resolver to accept and cache malicious data. The issue affects BIND 9 versions 9.16.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, 9.16.8-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. Available context indicates resolver deployments are affected; there is no indication authoritative-only configurations are impacted.
Are you exposed to this one?
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.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Affected products & vendors
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.
Recent activity
30 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A BIND DNS vulnerability where weak PRNG behavior can make DNS transaction parameters (source port and query ID) predictable, undermining DNS query randomness and enabling off-path attack scenarios in affected configurations.
A vulnerability listed as trending; no technical details provided in the content.
A BIND 9 DNS cache-poisoning vulnerability caused by weak PRNG behavior that can allow prediction of source ports and query IDs, enabling forged DNS responses to be accepted and cached.
A vulnerability in ISC BIND 9 affecting multiple versions, details unspecified in the content, but significant enough to warrant a security advisory and patch.
The version that knows your environment.
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.