CVE Catalog

CVE-2026-40691

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.30%

23th percentile - higher than 23% of all known CVEs

Summary

In Unbound versions 1.9.0 through 1.25.1, when handling DNSCrypt queries over TCP, the reply encryption routine does not bound the reply length to the destination buffer size. A reply larger than 65504 bytes can cause a heap buffer overflow, leading to resolver crash (DoS). Requires DNSCrypt support enabled.

Risk Assessment

A remote attacker can send a single malicious encrypted query, crashing the DNS resolver and disrupting service for all users.

Recommendation

Update Unbound to version 1.25.2 or later if available. If not possible, consider disabling DNSCrypt support for TCP connections.

Other vulnerabilities in Unbound

See all
Original NVD description (English source)

In Unbound 1.9.0 up to and including 1.25.1, when a DNSCrypt query is received over TCP, the routine that encrypts the reply in place fails to bound the reply length against the destination buffer size. The size clamp that protects the UDP path is not applied on the TCP path, so a reply larger than 65504 bytes is shifted forward by 48 bytes inside a buffer of capacity equal to 'msg-buffer-size', writing past the end of the heap allocation. A single malicious encrypted query crashes the resolver and lead to denial of service. This vulnerability needs Unbound to be compiled with DNSCrypt support ('--enable-dnscrypt') and the 'dnscrypt:' clause to be configured and enabled for the listening interfaces.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS