CVE-2026-42944 Heap overflow with multiple NSID, COOKIE, PADDING EDNS options

High 8.7 Published Updated

An attacker can cause a heap overflow and crash the Unbound DNS resolver by sending queries with multiple EDNS options when specific features are enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-42944?

CVE-2026-42944 is a high-severity memory corruption vulnerability in Nlnetlabs Unbound, published on 20 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

NLnet Labs Unbound 1.14.0 up to and including version 1.25.0 has a vulnerability that results in heap overflow when encoding multiple NSID and/or DNS Cookie EDNS and/or EDNS Padding options in the reply packet. The relevant options ('nsid', 'answer-cookie', 'pad-responses' (default)) need to be enabled for the vulnerability to be exploited. An adversary who can query Unbound can exploit the 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 truncates the correct value which allows the encoder to overflow the available space when writing. Those two combined lead to a heap overflow write of Unbound controlled data and eventually a crash. Unbound 1.25.1 contains a patch with a fix to de-duplicate the EDNS options and a fix to prevent truncation of the EDNS field size calculation.

Weakness: CWE-131, CWE-787, CWE-197

Which versions are affected by CVE-2026-42944?

It affects 1 product.

Products include Nlnetlabs Unbound.

How do I fix CVE-2026-42944?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-42944 being exploited?

There is no known exploitation of CVE-2026-42944 in the wild and no public exploit code.

All Nlnetlabs Unbound vulnerabilities

Sources

Also known as ALPINE-CVE-2026-42944, AZL-87042, DEBIAN-CVE-2026-42944, ECHO-7892-53ae-a3fb, GHSA-7mmq-q3m9-jrv7, ROOT-OS-DEBIAN-11-CVE-2026-42944 and 2 more.

Is CVE-2026-42944 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free