NLnet Labs Unbound Heap Overflow Vulnerability in EDNS Option Encoding

Vulnerability

A heap overflow vulnerability has been identified in NLnet Labs Unbound versions 1.14.0 prior to 1.25.0. The issue arises when multiple NSID, DNS Cookie EDNS, and EDNS Padding options are encoded in the reply packet. Exploitation requires the relevant options to be enabled. An adversary can exploit this vulnerability by attaching multiple NSID and/or DNS Cookie EDNS and/or EDNS Padding options to the query. A flaw in the size calculation of the EDNS field allows the encoder to overflow the available space, leading to a heap overflow write of Unbound-controlled data, causing a crash.

Impact

Exploitation of this vulnerability causes a heap overflow, writing Unbound-controlled data, which eventually leads to a crash.

Remediation

Users can upgrade to Unbound version 1.25.1, which includes the necessary patch. For those using Unbound 1.25.0, a specific patch is available that addresses the vulnerability. Instructions for applying this patch are included in the Unbound 1.25.0 release notes.

Added: May 20, 2026, 10:20 AM
Updated: May 20, 2026, 10:20 AM

Vulnerability Rating

Custom Algorithm
spread
8.1
impact
3.1
exploitability
7.8
remediation
8.3
relevance
8.9
threat
0.0
urgency
10.0
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.