CVE-2026-40691
Last modified
CVE-2026-40691 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.30% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Nlnetlabs | Unbound | >= 1.9.0, < 1.25.2 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-40691?
How severe is CVE-2026-40691?
How do I fix CVE-2026-40691?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40685In Exim before 4.99.2, when JSON lookup is enabled, an out-o…9.8
- CVE-2026-40686In Exim before 4.99.2, when utf8 operators are enabled, ther…5.3
- CVE-2026-40687In Exim before 4.99.2, when the SPA authentication driver is…9.1
- CVE-2026-40688An out-of-bounds write vulnerability [CWE-787] vulnerability…7.2
- CVE-2026-4069The Alfie – Feed Plugin plugin for WordPress is vulnerable t…6.1
- CVE-2026-40690The asset dependency graph did not restrict nodes by the vie…4.3
- CVE-2026-40698A vulnerability exists in BIG-IP and BIG-IQ systems where a …8.7
- CVE-2026-40699A vulnerability exists in the undisclosed pages in the Confi…7.1
- CVE-2026-4070The Alfie – Feed Plugin plugin for WordPress is vulnerable t…4.3
- CVE-2026-40701NGINX Plus and NGINX Open Source have a vulnerability in the…6.3
- CVE-2026-40702WebSocket endpoints lack proper authentication mechanisms, e…9.4
- CVE-2026-40703A cross-site request forgery (CSRF) vulnerability exists in …5.4
Are you affected by CVE-2026-40691?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
