{"id":"CVE-2026-42944","published":"2026-05-20T09:20:23Z","modified":"2026-08-26T12:04:57Z","title":"Heap overflow with multiple NSID, COOKIE, PADDING EDNS options","vendor":"NLnet Labs","product":"Unbound","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Red","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00842,"percentile":0.58812,"provenance":"source"},"cwes":[{"id":"CWE-197","name":"Numeric Truncation Error"},{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-131","name":"Incorrect Calculation of Buffer Size"}],"references":[{"url":"https://www.nlnetlabs.nl/downloads/unbound/CVE-2026-42944.txt","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-42944","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2479774","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42944.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:23231","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24365","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24369","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19752","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":11.76},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"nlnet-labs","affectedVersions":[{"vendor":"NLnet Labs","product":"Unbound","versions":[">= 1.14.0, < 1.25.1"]}],"solutions":{"items":["This issue is fixed starting with version 1.25.1"],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-20T13:37:32.347565Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-31085","exploited":false,"provenance":"source"}}