Skip to main content
VulnerabilityPublished

CVE-2026-40691: NLnet Labs Unbound · Heap-based Buffer Overflow

Affects NLnet Labs UnboundSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.5 High : upgrade to 1.25.2 soon.

Data as of 4 Dec 2026, 18:37 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 23% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.25.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.

What to do

Upgrade NLnet Labs Unbound to 1.25.2.

Affected software

ProductAffectedFixed in
NLnet LabsUnboundAffected
  • >=1.9.0 <1.25.2
Fixed in
  • 1.25.2

AI-suggested

If you cannot patch yet, avoid enabling DNSCrypt support in Unbound or disable the 'dnscrypt:' clause on listening interfaces to prevent exposure.

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.

References

Community reviews

Loading reviews…