Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain ability to supply zone data (PR:L)
-
DeliveryCraft APL RR with oversized afdlength
-
ExploitDeliver record into NSD-served zone
-
ExecutionNSD serializes zone to disk
-
PersistOverflow stack with ≤111 bytes
-
ImpactCrash or corrupt NSD process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer copy size validation
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to get a malformed APL (Address Prefix List) resource record - one whose afdlength exceeds the maximum permitted for its declared address family - accepted into a zone that NSD 4.14.0 serves, and the overflow triggers specifically when that zone is written to disk. This implies the attacker needs the ability to introduce or control zone data (consistent with CVSS PR:L), such as acting as a primary for a secondary NSD, controlling a zone-provisioning/DNS UPDATE path, or otherwise supplying zone records. Limiting factors: only version 4.14.0 is affected (not earlier releases), the overflow is bounded to a maximum of 111 attacker-controlled bytes, it does not fire on mere query handling but on zone-to-disk serialization, and low privilege to affect zone content is required - it is not an unauthenticated query-only attack against a default deployment. |
| Impact | Signals are moderately consistent rather than alarming. The provided CVSS 4.0 score is 7.2 (High) with AV:N/AC:L/AT:N/PR:L/UI:N and VI:H/VA:H but VC:N, indicating network reachability but a required privilege (PR:L) - the attacker must be able to get crafted zone data accepted and written by NSD, which is not equivalent to a fully unauthenticated internet attacker. No EPSS score, KEV listing, POC, or SSVC decision data was provided in the input, so automatability and active-exploitation status cannot be evaluated from the data; absence of these is not evidence of low risk but does argue against treating this as an emergency. The realistic precondition (control over zone contents, e.g., via a provisioning pipeline, DNS UPDATE, or a primary feeding a secondary) meaningfully narrows the attacker population, so this is a credible but constrained server-side memory-corruption issue rather than a mass-exploitable remote-unauthenticated bug. Note: the CVSS vector marks confidentiality impact N while integrity/availability are H, consistent with a stack overwrite causing crash/corruption rather than data disclosure - verify with the NLnet Labs advisory whether reliable code execution is demonstrated. |
| Exploit ScenarioDerived | An attacker who can influence the contents of a zone served by NSD 4.14.0 - for example a malicious or compromised primary feeding a secondary, or an actor able to inject records through a zone-management interface - crafts an APL resource record with an afdlength larger than its address family permits. When NSD writes that zone to disk, the oversized address data overflows a stack buffer with up to 111 attacker-controlled bytes, crashing the daemon or potentially corrupting the stack toward code execution. No public exploit has been identified at time of analysis, and exploitation requires the attacker to get crafted zone data accepted (PR:L). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 25, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Nsd gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
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
1DescriptionCVE.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.
Executive ViewAI
NSD 4.14.0, an authoritative DNS server used by organizations to host DNS zones, contains a stack buffer overflow affecting zone data serialization that could allow authenticated attackers with low system privileges to crash the service or potentially execute code. Organizations running this version face operational risk from service disruption and potential compromise of DNS infrastructure if zone data sources are not adequately controlled.
Until vendor patch becomes available: (1) Restrict zone data input sources to trusted, authenticated administrative channels only; (2) Implement strict access controls on zone transfer mechanisms (AXFR/IXFR); (3) Monitor DNS service logs for crashes or unexpected exits; (4) Implement network segmentation to prevent zone modification attempts from untrusted network segments; (5) Maintain offline backups of zone configurations for rapid recovery if service is compromised.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Stack-based buffer overflow in NLnet Labs NSD's zone-file RDATA parser allows an attacker with the ability to supply a c
Loading a crafted zone file into NLnet Labs NSD can overflow a stack buffer and overwrite up to 191 bytes with attacker-
A stack-based buffer overflow in NLnet Labs NSD's parsing of SVCB/HTTPS resource records allows an attacker who can supp
Stack-based buffer overflow in NLnet Labs NSD is triggered when the daemon parses a zone file containing base64 data spl
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
EUVD-2026-39184
GHSA-xgm5-85mh-3559
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB