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 67.7% of all 364,858 vulnerabilities in our database.

#117,757
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-77860 â„šī¸ low 3.7 0.3 In NLnetLabs Unbound 1.20.0 up to and including 1.26.0, a vulnerability on the 'serve-expired' code path can cause a dou... 2026-09-16
CVE-2026-77955 đŸ”ļ medium 4.4 0.2 In NLnet Labs Unbound 1.13.2 up to and including 1.26.1, a vulnerability in ZONEMD configured zones (zonemd-check: yes) ... 2026-09-16
CVE-2026-78227 đŸ”ļ medium 6.5 0.3 NLnet Labs Unbound 1.22.0 up to and including 1.26.1, has a use-after-free vulnerability when compiled for DNS-over-QUIC... 2026-09-16
CVE-2026-80225 đŸ”ļ medium 5.3 0.5 In NLnetLabs Unbound up to and including 1.26.0, a degradation of service vulnerability is present in the TCP/DoT readin... 2026-09-16
CVE-2026-81634 âš ī¸ high 7.5 0.5 In NLnet Labs Unbound up to and including 1.26.0, a 255 length query name with a large TCP response can lead to a heap b... 2026-09-16
CVE-2026-81642 ⛔ critical 9.8 1.0 In NLnet Labs Unbound up to and including 1.26.0, a vulnerability was found in the DNSSEC validator that enables denial ... 2026-09-16
These CVEs affect the same products