{"id":"CVE-2026-42944","aliases":["CVE-2026-42944"],"related":[],"kind":"vulnerability","state":"published","title":"Heap overflow with multiple NSID, COOKIE, PADDING EDNS options","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"NLnet Labs Unbound 1.14.0 hasta la versión 1.25.0 inclusive tiene una vulnerabilidad que resulta en un desbordamiento de montículo al codificar múltiples opciones NSID y/o DNS Cookie EDNS y/o EDNS Padding en el paquete de respuesta. Las opciones relevantes ('nsid', 'answer-cookie', 'pad-responses' (predeterminado)) deben estar habilitadas para que la vulnerabilidad sea explotada. Un adversario que puede consultar Unbound puede explotar la vulnerabilidad adjuntando múltiples opciones NSID y/o DNS Cookie EDNS y/o EDNS Padding a la consulta. Un fallo en el cálculo del tamaño del campo EDNS trunca el valor correcto, lo que permite al codificador desbordar el espacio disponible al escribir. Esos dos combinados conducen a una escritura de desbordamiento de montículo de datos controlados por Unbound y eventualmente a un fallo. Unbound 1.25.1 contiene un parche con una corrección para desduplicar las opciones EDNS y una corrección para evitar la truncación del cálculo del tamaño del campo EDNS.","source":"nvd"}],"published":"2026-05-20T09:20:23.906Z","modified":"2026-08-26T13:19:01.207Z","severity":{"scorer":"NLnet Labs","scheme":"CVSS: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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"NLnet Labs","scheme":"CVSS: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","score":8.7,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-131","CWE-197","CWE-787"],"affected":[{"ranges":[{"type":"semver","introduced":"1.14.0","fixed":"1.25.1","status":"affected"}],"vendor":"NLnet Labs","product":"Unbound","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.24.2-7.el10_2.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"unbound","cpe":"cpe:/o:redhat:enterprise_linux:10.2","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.16.2-5.11.el8_10","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"unbound","cpe":"cpe:/a:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.24.2-3.el9_8.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"unbound","cpe":"cpe:/a:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1.25.1-0.1.hum1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Hardened Images","package":"unbound-main","cpe":"cpe:/a:redhat:hummingbird:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","package":"unbound","cpe":"cpe:/o:redhat:enterprise_linux:6","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","package":"unbound","cpe":"cpe:/o:redhat:enterprise_linux:7","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"1.14.0","fixed":"1.25.1"}],"vendor":"nlnetlabs","product":"unbound","cpe":"cpe:2.3:a:nlnetlabs:unbound:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://www.nlnetlabs.nl/downloads/unbound/CVE-2026-42944.txt","tags":["mitigation","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-42944","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2479774","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42944.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:23231","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24365","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24369","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19752","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]}],"credits":["Qifan Zhang (Palo Alto Networks)"],"assigner":"NLnet Labs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-20T13:37:32.347Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42944","url":"https://www.cve.org/CVERecord?id=CVE-2026-42944","licence":"CVE Terms of Use","modified":"2026-08-26T12:04:57.670Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42944","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42944","licence":"Public domain","modified":"2026-08-26T13:19:01.207Z"}],"updatedAt":"2026-11-25T22:59:22.035Z","epss":{"score":0.00842,"percentile":0.59035,"date":"2026-12-01T12:00:22.000Z"}}