CVE-2026-40691: Packet of death for DNSCrypt over TCP
Vulnerability summary
CVE-2026-40691 is a high (CVSS 7.5) Heap-based Buffer Overflow vulnerability in nlnet labs unbound. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 23.5% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 15 · Related 11Timeline
- 22-07-2026PublishedVulnerability first disclosed.
- 22-07-2026Last modifiedVulnerability information updated.
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 metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.29%
Chance of exploitation in the next 30 days
Percentile
24%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.29% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- unboundAll versions (No fix recorded) | < 1.26.1-0+deb13u1 | < 1.25.2-1
Nlnet labs1 product
- unbound≥ 1.9.0, < 1.25.2
Nlnetlabs1 product
- unbound≥ 1.9.0, < 1.25.2
Ubuntu1 product
- unboundAll versions (No fix recorded) | < 1.6.7-1ubuntu2.6+esm6 | < 1.9.4-2ubuntu1.11+esm3 | < 1.13.1-1ubuntu5.17 | < 1.19.2-1ubuntu3.12 | < 1.25.1-1ubuntu3.1 | < 1.24.2-1ubuntu2.4
4 vendors · 4 products
References
8 links- www.nlnetlabs.nl/downloads/unbound/CVE-2026-40691.txtVendor Advisory