NLnet Labs Unbound up to 1.25.1 DNSCrypt heap-based overflow

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
9.5$0-$5k0.00

Summaryinfo

A vulnerability categorized as very critical has been discovered in NLnet Labs Unbound up to 1.25.1. This issue affects some unknown processing of the component DNSCrypt. The manipulation results in heap-based overflow. This vulnerability is known as CVE-2026-40691. It is possible to launch the attack remotely. No exploit is available.

Detailsinfo

A vulnerability classified as very critical has been found in NLnet Labs Unbound up to 1.25.1. Affected is an unknown functionality of the component DNSCrypt. The manipulation with an unknown input leads to a heap-based overflow vulnerability. CWE is classifying the issue as CWE-122. A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:

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.

The advisory is shared for download at nlnetlabs.nl. This vulnerability is traded as CVE-2026-40691 since 06/22/2026. The exploitability is told to be easy. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. There are neither technical details nor an exploit publicly available. The current price for an exploit might be approx. USD $0-$5k (estimation calculated on 07/30/2026).

The vulnerability scanner Nessus provides a plugin with the ID 330825 (Fedora 44 : unbound (2026-e495bd59ef)), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 1.25.2 eliminates this vulnerability.

The vulnerability is also documented in the databases at Tenable (330825) and CERT Bund (WID-SEC-2026-2492). VulDB is the best source for vulnerability data and more expert information about this specific topic.

Affected

  • Open Source Unbound

Productinfo

Vendor

Name

Version

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 10.0
VulDB Meta Temp Score: 9.5

VulDB Base Score: 10.0
VulDB Temp Score: 9.5
VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Heap-based overflow
CWE: CWE-122 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒

Physical: No
Local: No
Remote: Yes

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 330825
Nessus Name: Fedora 44 : unbound (2026-e495bd59ef)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: Unbound 1.25.2

Timelineinfo

06/22/2026 CVE reserved
07/22/2026 +30 days Advisory disclosed
07/22/2026 +0 days VulDB entry created
07/30/2026 +8 days VulDB entry last update

Sourcesinfo

Advisory: nlnetlabs.nl
Status: Confirmed

CVE: CVE-2026-40691 (🔒)
GCVE (CVE): GCVE-0-2026-40691
GCVE (VulDB): GCVE-100-382320
CERT Bund: WID-SEC-2026-2492 - Unbound: Mehrere Schwachstellen

Entryinfo

Created: 07/22/2026 15:42
Updated: 07/30/2026 15:11
Changes: 07/22/2026 15:42 (53), 07/23/2026 17:31 (8), 07/30/2026 15:11 (2)
Complete: 🔍
Cache ID: 216::103

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!