CVE-2026-40691: In Unbound 1.9.0 up to and including 1.25.1, when a DNSCrypt query is received over TCP, the routine that encr
36
Routine
HIGH 7.5REMOTEUPGRADE
CVE-2026-40691 is a high-severity flaw (CVSS 7.5) affecting unbound. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 sing
Verify at the official sourceNVD · CVE Program · Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40691?
unbound: upgrade to 1.25.2. Exact commands for each OS are on this page.
Is CVE-2026-40691 being exploited?
CVE-2026-40691 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40691 affect?
CVE-2026-40691 affects unbound. Severity is high (CVSS 7.5). 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
How urgent is CVE-2026-40691?
Priority 36/100. High severity; Remotely exploitable, no login, no user action
Related CVEs
CVE-2026-32665HIGH 7.5UPGRADE In NLnet Labs Unbound 1.22.0 up to and including 1.25.1, when downstream DNS-over-QUIC (DoQ) is enabled, the f
CVE-2026-55973HIGH 7.5UPGRADE In NLnet Labs Unbound 1.23.0 up to and including 1.25.1, when 'dns-error-reporting: yes' is set, the EDNS Repo
CVE-2026-50252CRITICAL 9.3UPGRADE In NLnet Labs Unbound 1.4.22 up to and including 1.25.1, UDP source port is randomized and intended to serve a
CVE-2026-50045MEDIUM 5.3UPGRADE In NLnet Labs Unbound 1.22.0 up to and including 1.25.1, a single client query for a deeply nested name under
CVE-2026-52863MEDIUM 5.9UPGRADE In NLnet Labs Unbound 1.25.0 up to and including 1.25.1, a fix that makes the 'respip' and 'dns64' modules wor