CWE-341Weakness · CWE-341

CVE-2025-40780

HIGH · 8.6 CVSS v3.1 Published 2025-10-22
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
95/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

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 · unedited
In 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 confidence

BIND 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.

MitigationUpgrade 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.

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 checks

Work through these to decide whether this CVE applies to you.

  1. Identify if BIND 9 is running
    Run 'ps aux | grep named' or 'systemctl status named' to see if the named process is active
    Affected if named process is not running - not affected; if running, proceed to next check
  2. Determine BIND 9 version
    Run 'named -v' or 'named -V' to get the exact version number
    Affected if version is unpatched and falls within the vulnerable range (compare to the affected versions in ISC advisory)
  3. Confirm server role as recursive resolver
    Inspect named.conf for 'options { recursion yes; }' or check if the server accepts recursive queries from clients
    Affected if server handles recursive DNS queries - the weak PRNG affects outgoing query source ports and transaction IDs, making cache poisoning possible
  4. Check network exposure
    Verify 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.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade 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.

Recommended fix Moderate confidence

BIND 9.16.51+ / 9.18.40+ / 9.20.14+ / 9.21.13+ (or later stable releases)

  1. 1. Identify the currently installed BIND 9 version using 'named -v' or 'bind -v'
  2. 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. 3. For supported repository users: run 'apt-get update && apt-get upgrade' (Debian/Ubuntu) or 'yum update' (RHEL/CentOS) or 'dnf update' (Fedora)
  4. 4. For source builds: download the appropriate version from ISC downloads at https://www.isc.org/download/ and rebuild
  5. 5. After upgrade, restart the named service using 'systemctl restart named' or 'service named restart'
  6. 6. Verify the new version is running with 'named -v'
Caveat Minor: Review release notes for any configuration changes; some platforms may require adjusting system entropy sources (like installing haveged) if /dev/random blocks

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation3.0 h
  • Testing3.0 h
  • Review / QA1.0 h
9.0 hours of engineering $1,570
Get help mitigating

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 locally
dbcve dependency scanner

Check 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-40780 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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