Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attacker must control zone content so PR:L; network-reachable serialization path AV:N/AC:L; stack overwrite corrupts/crashes giving I:H and A:H with no disclosure (C:N).
Primary rating from Vendor (NLnet Labs).
CVSS VectorVendor: NLnet Labs
Lifecycle Timeline
2DescriptionCVE.org
NSD version 4.14.0 introduced a bug where a specially crafted APL RR, with an adflength larger than permitted for the address family will overwrite the stack when the zone is written to disk, with a maximum of 111 attacker controlled bytes.
AnalysisAI
Stack buffer overflow in NSD 4.14.0 (NLnet Labs authoritative DNS server) allows a party able to introduce zone data to overwrite up to 111 attacker-controlled bytes on the stack when a specially crafted APL resource record - carrying an adflength larger than the address family permits - is serialized as the zone is written to disk. Per the CVSS 4.0 vector (PR:L), exploitation requires low privileges and yields high integrity and availability impact, consistent with memory corruption leading to crash or potential code execution. There is no public exploit identified at time of analysis and the issue is not listed in CISA KEV.
Technical ContextAI
NSD is an authoritative-only DNS name server developed by NLnet Labs, used to serve DNS zones for domains including high-traffic and root/TLD infrastructure. The flaw lives in NSD's handling of the APL (Address Prefix List, RFC 3123) resource record type, which encodes address-family-scoped prefixes with an 'afdlength' field describing how many address bytes follow. The regression was introduced in version 4.14.0 (cpe:2.3:a:nlnet_labs:nsd), where the code fails to validate that afdlength does not exceed the maximum length allowed for the declared address family (4 bytes for IPv4, 16 for IPv6). When the zone is committed to disk, copying the oversized address data into a fixed stack buffer overflows it - a textbook CWE-120 classic buffer overflow (copy without size check) - corrupting up to 111 bytes of attacker-influenced stack memory.
RemediationAI
Upgrade NSD to the fixed release published by NLnet Labs as referenced in the advisory at https://www.nlnetlabs.nl/downloads/nsd/CVE-2026-12246.txt; the input data does not contain a confirmed exact fix version, so released patched version is not independently confirmed and the precise target version should be read from that advisory before deploying. As compensating controls until patched, restrict who and what can supply zone content to NSD: tightly limit and authenticate zone-transfer sources (allow-notify/provide-xfr with TSIG and explicit ACLs), validate or sanitize zone data in your provisioning pipeline to reject APL records whose afdlength exceeds 4 bytes (IPv4) or 16 bytes (IPv6), and avoid serving zones from untrusted or externally-writable sources. If APL records are not used in your zones, dropping or filtering them at the provisioning layer removes the trigger; the trade-off is added pipeline validation and the rare case where legitimate APL records are needed.
Remote denial-of-service in NLnet Labs NSD (authoritative DNS name server) version 4.13.0 and later allows an unauthenti
Heap overflow in NLnet Labs NSD allows a malicious or compromised zone primary to corrupt memory on a secondary (slave)
NSD's proxy protocol port fails to re-evaluate BLOCKED access control list entries on the second DNS query sent over a k
NSD authoritative DNS server crashes serve child processes when receiving a crafted DNS message containing exactly 17 DN
IP range-based access control in NLnet Labs NSD is silently broken on little-endian systems due to an endianness mismatc
Zone-transfer authentication bypass in NLnet Labs NSD allows unauthorized secondaries to obtain full zone contents witho
NSD before 4.1.11 allows remote DNS master servers to cause a denial of service (/tmp disk consumption and slave server
TCP window throttling in NLnet Labs NSD allows any unauthenticated remote attacker to crash individual serve child proce
query.c in NSD 3.0.x through 3.0.8, 3.1.x through 3.1.1, and 3.2.x before 3.2.12 allows remote attackers to cause a deni
Same weakness CWE-120 – Classic Buffer Overflow
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: ImportantShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-39184
GHSA-xgm5-85mh-3559