CVE-2025-40776
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 · uneditedA `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 confidenceBIND 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.
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 BIND9 installation and versionRun '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.
-
Confirm named process is runningRun '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.
-
Locate BIND9 configuration filesCheck 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.
-
Check for EDNS Client Subnet (ECS) configurationSearch 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').
-
Verify forwarding configuration for ECSIn 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.
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 · scopedDisable 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).
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. Identify the exact BIND 9 version currently running using `named -v` or `named -V`
- 2. Confirm whether ECS (edns-client-subnet) is enabled in named.conf - look for `edns-client-subnet` in options or view blocks
- 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. 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. Test the new version in a non-production environment before deploying
- 6. Apply the upgrade following your organization's change management process
- 7. After upgrade, verify named is running the patched version and monitor for any anomalies
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.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,224.
Scan for this in your stack
Free · runs locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-40776 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