CVEFinder.io

CVE-2026-40691

âš ī¸ high
🔍 Scan for this CVE
Summary

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

Description

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.

CVSS Score
7.5
High
EPSS Score
0.3
Exploit Probability
Published Date
2026-07-22
First Seen: 2026-07-23
📊 Relative Risk Intelligence

This CVE is Moderate Risk - more severe than 68.0% of all 349,016 vulnerabilities in our database.

#111,749
Above average severity
Severity Percentile
đŸŽ¯ CISA SSVC Assessment Updated: Jul 22, 2026
🔍 Exploitation Status
None
No known exploits
âš™ī¸ Automatable
YES
Can be exploited automatically
đŸ’Ĩ Technical Impact
Partial
Limited system impact
🏆 Discovered By
Qifan Zhang (Palo Alto Networks) Trung Nguyen (@everping, CyStack)
SSVC data provided by CISA
Last Modified 2026-07-24
CVSS Vector 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE IDs (Weakness Types)

đŸ“Ļ Affected Products 1

🔗 References 1

🔗 Related CVEs 6

CVE ID Severity CVSS EPSS Summary Published
CVE-2026-32665 âš ī¸ high 7.5 0.3 In NLnet Labs Unbound 1.22.0 up to and including 1.25.1, when downstream DNS-over-QUIC (DoQ) is enabled, the first two b... 2026-07-22
CVE-2026-41637 â„šī¸ low 3.7 0.3 In NLnet Labs Unbound 1.22.0 up to and including 1.25.1, client terminated DNS-over-QUIC (DoQ) queries are not accounted... 2026-07-22
CVE-2026-42955 â„šī¸ low 3.7 0.2 In NLnet Labs Unbound 1.16.2 up to and including 1.25.1, a similar vulnerability as with CVE-2026-40622 in the 'ghost do... 2026-07-22
CVE-2026-44621 đŸ”ļ medium 5.9 0.3 With NLnet Labs Unbound up to and including version 1.25.1, applications using libunbound and configured with 'unwanted-... 2026-07-22
CVE-2026-44687 â„šī¸ low 3.7 0.2 In NLnet Labs Unbound 1.13.2 up to and including 1.25.1, stub or forward zones where the name is below an intermediate l... 2026-07-22
CVE-2026-44690 âš ī¸ high 7.5 0.2 In NLnet Labs Unbound 1.7.0 up to and including 1.25.1, insufficient validation of the RRSIG.Labels field combined with ... 2026-07-22
These CVEs affect the same products