CWE-349Weakness · CWE-349

CVE-2025-40776

HIGH · 8.6 CVSS v3.1 Published 2025-07-16
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
A `named` caching resolver that is configured to send ECS (EDNS Client Subnet) options may be vulnerable to a cache-poisoning attack. This issue affects BIND 9 versions 9.11.3-S1 through 9.16.50-S1, 9.18.11-S1 through 9.18.37-S1, and 9.20.9-S1 through 9.20.10-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 caching resolvers configured to send ECS (EDNS Client Subnet) options are vulnerable to cache-poisoning attacks, allowing attackers to inject malicious DNS records into the resolver's cache by manipulating ECS-related responses.

MitigationDisable ECS options in the named.conf configuration or upgrade to the vendor-patched BIND 9 versions (9.16.51-S1, 9.18.38-S1, or 9.20.11-S1 and later).

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 BIND9 installation and version
    Run 'named -v' or 'named -V' to display the BIND9 version. Also check for package manager info with 'rpm -q bind' or 'dpkg -l bind9'.
    Affected if The installed version falls within the affected (unpatched) version range of BIND9.
  2. Confirm named process is running
    Run 'ps aux | grep named' or 'systemctl status named' to verify the BIND9 resolver daemon is active.
    Affected if A BIND9 caching resolver (named) process is running.
  3. Locate BIND9 configuration files
    Check for named.conf in /etc/named.conf, /etc/bind/named.conf, or paths specified via 'named -c <config>'. Look for include statements that may pull in additional configuration files.
    Affected if The configuration files exist and are readable.
  4. Check for EDNS Client Subnet (ECS) configuration
    Search the named.conf files for 'edns-client-subnet' or 'ecs' keywords. Run: 'grep -r "edns-client-subnet" /etc/named.conf /etc/bind/' or inspect the config manually.
    Affected if The directive 'edns-client-subnet' is present and set to allow ECS requests (for example, 'request yes' or not explicitly set to 'request no').
  5. Verify forwarding configuration for ECS
    In the named.conf, check the 'options' block or view blocks for 'forwarders' statements. Determine if the resolver forwards queries (recursive or forwarding mode) to upstream resolvers while ECS is enabled.
    Affected if The resolver forwards DNS queries to upstream resolvers AND ECS support is enabled, allowing ECS options to be forwarded.

A user is affected if they run an unpatched BIND9 version with a caching resolver that forwards EDNS Client Subnet options to upstream resolvers.

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

Disable ECS options in the named.conf configuration or upgrade to the vendor-patched BIND 9 versions (9.16.51-S1, 9.18.38-S1, or 9.20.11-S1 and later).

Recommended fix Moderate confidence

ISC BIND 9.18.38-S1 or later for 9.18.x; 9.20.11-S1 or later for 9.20.x; 9.16.51-S1 or later for 9.16.x (check kb.isc.org for exact patched releases)

  1. 1. Identify the exact BIND 9 version currently running using `named -v` or `named -V`
  2. 2. Confirm whether ECS (edns-client-subnet) is enabled in named.conf - look for `edns-client-subnet` in options or view blocks
  3. 3. If ECS is not actively used in your resolver configuration, consider disabling it as a temporary mitigation: add `edns-client-subnet {;};` with empty scope to disable, or remove ECS configuration entirely
  4. 4. Obtain the patched BIND 9 version from ISC at https://www.isc.org/download/ (look for the security patch release addressing CVE-2025-40776)
  5. 5. Test the new version in a non-production environment before deploying
  6. 6. Apply the upgrade following your organization's change management process
  7. 7. After upgrade, verify named is running the patched version and monitor for any anomalies
Caveat Standard BIND upgrade risks apply - review ISC release notes for any configuration or behavior changes between versions

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

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

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,224.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-40776 — 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-40776 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