Critical Assertion Failure in BIND Package Due to CNAME Chain Handling

bind Updated 02 Oct 2025

Summary

16/07/2025
N/A
Yes i
High
7.5

CVE-2025-40777: If a named caching resolver is configured with serve-stale-enable yes, and with stale-answer-client-timeout set to 0 (the only allowable value other than disabled), and if the resolver, in the process of resolving a quer... Affects bind versions < 9.20.11-r0. Fixed in 9.20.11-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

BIND (Berkeley Internet Name Domain) is a widely used DNS server software that provides name resolution services for the internet. It is known for its robustness and flexibility, allowing administrators to configure various DNS features. However, certain configurations can lead to vulnerabilities, such as the one described here, which affects BIND versions 9.20.0 through 9.20.10, 9.21.0 through 9.21.9, and 9.20.9-S1 through 9.20.10-S1. This vulnerability arises when specific settings are enabled, potentially leading to service disruptions.

Vulnerability Detail

The vulnerability occurs when a 'named' caching resolver is configured with 'serve-stale-enable' set to 'yes' and 'stale-answer-client-timeout' set to '0'. Under these conditions, if the resolver encounters a CNAME chain involving a specific combination of cached or authoritative records while resolving a query, it will abort with an assertion failure. This can lead to denial of service, as the DNS service will become unresponsive, affecting all clients relying on it.

How To Fix

Minimum fixed version

9.20.11-r0

This is the first release that contains the fix.

sudo apk add --upgrade bind

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider disabling the 'serve-stale-enable' option or setting 'stale-answer-client-timeout' to 'disabled' to prevent the assertion failure until the package can be updated.

Conclusion

In summary, the vulnerability in BIND related to CNAME chain handling can lead to significant service disruptions. It is crucial to update to the patched version or implement the suggested workarounds to mitigate the risk. Regular monitoring of vulnerabilities using tools like Vulert can help maintain the security of your applications.

See every vulnerability recorded for bind →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

BIND versions 9.20.0 through 9.20.10, 9.21.0 through 9.21.9, and 9.20.9-S1 through 9.20.10-S1 are affected by this vulnerability.

If left unaddressed, this vulnerability can lead to denial of service, causing the DNS service to become unresponsive.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.

Yes, Vulert allows you to monitor vulnerabilities using a manifest file like package-lock.json, providing real-time alerts.

Related vulnerabilities

Recent vulnerabilities recorded for bind.

How To Fix

Minimum fixed version

9.20.11-r0

This is the first release that contains the fix.

sudo apk add --upgrade bind

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback