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.
[
{
"digest": {
"length": 1502.0,
"function_hash": "26148135886169857913239956572075736548"
},
"id": "CVE-2026-42944-7cb89fac",
"signature_version": "v1",
"target": {
"file": "services/rpz.c",
"function": "rpz_callback_from_iterator_module"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://github.com/nlnetlabs/unbound/commit/75b6dba593d4fff000434cd64807c6ebd50bd244"
},
{
"digest": {
"line_hashes": [
"108481287081154918060659085654141150584",
"73953166938600086918224773195867549742",
"15251087855327528788980657535362970158",
"48532896601082718174781974683716349061",
"287248990686482337183326495344180868363",
"112058947495561481565691171486557666856",
"238258467286774268681997190612827183971",
"126648031849056156900266153546629664662",
"335401097143186200364020904286165936708",
"336096779053276656395004922884987906159",
"248876396313049466881138460638611830858",
"293135123655960925553682804594622081358",
"298612071867479354827766089224387452786",
"217265304546593372824910550975155656654",
"13292601781282786772501437491204364169",
"281286782737850123600796590480125479595",
"74511316679551775089931390035715335201",
"161066344018382590627892027575409612852",
"226343512543910522766563315515650712879"
],
"threshold": 0.9
},
"id": "CVE-2026-42944-a3b17d2e",
"signature_version": "v1",
"target": {
"file": "services/rpz.c"
},
"deprecated": false,
"signature_type": "Line",
"source": "https://github.com/nlnetlabs/unbound/commit/75b6dba593d4fff000434cd64807c6ebd50bd244"
}
]
"2026-06-02T08:21:51Z"
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-42944.json"