๐Ÿ” CVE Alert

CVE-2026-40691

HIGH 7.5

Packet of death for DNSCrypt over TCP

CVSS Score
7.5
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-122 CWE-787
Vendor nlnet labs
Product unbound
Published Jul 22, 2026
Stay Ahead of the Next One

Get instant alerts for nlnet labs unbound

Be the first to know when new high vulnerabilities affecting nlnet labs unbound are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability

Affected Versions

NLnet Labs / Unbound
1.9.0 < 1.25.2

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
nlnetlabs.nl: https://www.nlnetlabs.nl/downloads/unbound/CVE-2026-40691.txt

Credits

Qifan Zhang (Palo Alto Networks) Trung Nguyen (@everping, CyStack)