CVE-2025-40780
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn specific circumstances, due to a weakness in the Pseudo Random Number Generator (PRNG) that is used, it is possible for an attacker to predict the source port and query ID that BIND will use. This 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceBIND 9 contains a weak PRNG implementation used for generating source ports and query IDs in outgoing DNS queries. An attacker with network proximity can predict these values, potentially allowing DNS response spoofing or cache poisoning attacks against the BIND server.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify if BIND 9 is runningRun 'ps aux | grep named' or 'systemctl status named' to see if the named process is activeAffected if named process is not running - not affected; if running, proceed to next check
-
Determine BIND 9 versionRun 'named -v' or 'named -V' to get the exact version numberAffected if version is unpatched and falls within the vulnerable range (compare to the affected versions in ISC advisory)
-
Confirm server role as recursive resolverInspect named.conf for 'options { recursion yes; }' or check if the server accepts recursive queries from clientsAffected if server handles recursive DNS queries - the weak PRNG affects outgoing query source ports and transaction IDs, making cache poisoning possible
-
Check network exposureVerify the resolver is accessible to untrusted networks (e.g., view in named.conf, firewall rules)Affected if recursive resolver is exposed to untrusted networks - more vulnerable to external cache poisoning attempts
If BIND 9 is running as a recursive resolver with an unpatched version exposed to untrusted networks, the weak PRNG makes DNS cache poisoning feasible.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade BIND 9 to a version beyond the vulnerable ranges listed (9.16.51+, 9.18.40+, 9.20.14+, 9.21.13+, or respective S1 versions). Network-level controls limiting untrusted access to the DNS server may provide temporary defense-in-depth.
BIND 9.16.51+ / 9.18.40+ / 9.20.14+ / 9.21.13+ (or later stable releases)
- 1. Identify the currently installed BIND 9 version using 'named -v' or 'bind -v'
- 2. Based on your current version branch, upgrade to the appropriate fixed release: for 9.16.x upgrade to 9.16.51 or later; for 9.18.x upgrade to 9.18.40 or later; for 9.20.x upgrade to 9.20.14 or later; for 9.21.x upgrade to 9.21.13 or later
- 3. For supported repository users: run 'apt-get update && apt-get upgrade' (Debian/Ubuntu) or 'yum update' (RHEL/CentOS) or 'dnf update' (Fedora)
- 4. For source builds: download the appropriate version from ISC downloads at https://www.isc.org/download/ and rebuild
- 5. After upgrade, restart the named service using 'systemctl restart named' or 'service named restart'
- 6. Verify the new version is running with 'named -v'
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation3.0 h
- Testing3.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,512.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-40780 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-40780 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data