Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted zone file via provisioning
-
DeliveryBase64 split into ≤3-char chunks
-
ExploitToken length miscalculated as zero bytes
-
ExecutionStack overwritten with 64K controlled data
-
ImpactCode execution in NSD process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
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 control the content of a zone file that is fed directly to NSD and parsed by it - specifically a record containing base64 data split into pieces of three characters or fewer, which triggers the zero-byte token miscalculation. It is NOT triggerable via normal DNS queries, and it does NOT apply to zone files NSD writes itself (e.g. zones for which the NSD instance is secondary), since those are not formatted this way. The realistic exposure is deployments where zone input originates from a semi-trusted or operator-controlled provisioning system; closed single-operator setups with fully trusted zone sources are effectively not exposed. Limiting factors: requires write/submit access to zone-file input (PR:L per vendor) and does not affect secondary/auto-generated zones. |
| Impact | The vendor (NLnet Labs) rates this CVSS 4.0 8.7 (High) with AV:N/AC:L/AT:N/PR:L/UI:N and full VC:H/VI:H/VA:H impact, consistent with a CWE-121 stack buffer overflow enabling up to 64K of attacker-controlled data to overwrite the stack - classic code-execution potential. However, the network vector (AV:N) sits in tension with the description, which states the malicious zone file 'must be fed to NSD directly' and is not reachable through normal DNS query traffic or through zones NSD writes itself as a secondary; this is a configuration/provisioning-input flaw rather than a remotely-triggerable packet parser, so the effective attack surface is narrower than AV:N implies - verify the delivery path with the vendor. No EPSS score, CISA KEV listing, or public POC is present in the provided intelligence, so there is no evidence of active exploitation or weaponization; exploitation status is 'no public exploit identified at time of analysis.' Net assessment: a genuinely serious memory-corruption bug (stack overwrite with attacker-controlled bytes) but one whose real-world priority is gated by whether an attacker can influence zone-file content - high priority for operators whose provisioning systems accept semi-trusted zone input, lower for closed single-operator deployments. |
| Exploit ScenarioDerived | An attacker who can influence zone-file content submitted to an NSD authoritative server - for example via an operator-controlled provisioning or self-service zone pipeline - crafts a zone record containing base64 data split into chunks of three characters or fewer. When NSD parses the file, the token length is miscalculated as zero bytes, allowing up to 64K of attacker-controlled data to overwrite the stack, potentially leading to code execution in the NSD process context. No public exploit code is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
Stack-based buffer overflow in NLnet Labs NSD is triggered when the daemon parses a zone file containing base64 data split into chunks of three characters or fewer, causing the token length calculation to yield zero bytes and letting an attacker overwrite up to 64K of stack memory with attacker-controlled data, with likely code-execution impact. Our independent assessment rates this CVSS 3.1 AV:L/AC:L/PR:L/UI:N with High confidentiality, integrity and availability impact, reflecting that the attacker must control zone-file content fed directly to NSD (PR:L, i.e., write/submit access to the zone input path) - it is not reachable through normal DNS queries and does not affect zone files NSD generates itself, such as zones for which the instance is secondary. The vendor rates it CVSS 4.0 8.7 (High) with AV:N/PR:L; patch availability is not confirmed in the provided data, and no public exploit code or CISA KEV activity was identified at time of analysis.
RemediationAI
Patch availability is not confirmed by the provided data, so the first action is to consult the NLnet Labs advisory at https://www.nlnetlabs.nl/downloads/nsd/CVE-2026-101337.txt and apply the vendor-released fixed version as soon as one is identified; monitor NSD release notes and distro packages since the CPE wildcard indicates version-specific fix data was not supplied here. Until a fix is applied, the most direct compensating control is to normalize or validate zone files before they reach NSD - reformat or reject base64 record data that has been split into tokens of three characters or fewer, or run zone content through a parser/normalizer that re-wraps base64 - accepting the trade-off that this requires tooling in the provisioning pipeline and may reject legitimately odd-formatted zones. Restrict write/submit access to the zone-file input path to fully trusted administrators and systems (this matches the PR:L prerequisite) and prefer fully trusted zone sources, since closed single-operator setups with trusted zone input are effectively not exposed; treat any zone feed sourced from a semi-trusted tenant or external provisioning system as hostile. Additional defense-in-depth measures include running NSD with the least privileges and in a sandboxed or constrained environment, enabling compiler hardening such as stack canaries or the platform's allocator protections, and monitoring NSD logs and process crashes for segfaults or abnormal restarts that could indicate exploitation attempts, with the caveat that these reduce but do not eliminate the overflow's impact. If patching is delayed and zone input cannot be cleaned, consider temporarily disabling direct loading of externally supplied primary zone files where operationally feasible, noting the availability trade-off of stale DNS data.
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 (Name Server Daemon) is NLnet Labs' authoritative DNS server, and the flaw sits in its zone-file parser rather than in query processing. Base64 payloads appear in DNSSEC-related records such as DNSKEY, RRSIG, DS and NSEC3PARAM, and the parser tokenizes those values; when a base64 value arrives split across tokens of three characters or fewer, the decoder's length calculation incorrectly produces a zero-byte token, corrupting the internal length/buffer accounting that follows. The result is CWE-121, a stack-based buffer overflow, allowing an attacker who controls the zone-file content to write up to 64K of controlled data past the intended buffer boundary and potentially hijack control flow - classic code-execution potential. The CPE string cpe:2.3:a:nlnet_labs:nsd:*:*:*:*:*:*:*:* identifies the affected component as NLnet Labs NSD with all versions wildcarded, so the affected version set must be narrowed from the vendor advisory. Critically, NSD-written zone files are not formatted in this problematic way, so secondary zones and auto-generated zone files are outside the trigger path; the input must be a directly fed zone file, such as one produced by an operator-managed provisioning system.
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:H/VI:H/VA:H/SC:N/SI:N/SA:N
Requires supplying a crafted zone file directly to NSD (config/provisioning input, not query traffic), so AV:L and PR:L; stack overwrite with controlled data yields full C/I/A impact.
Primary rating from Vendor (NLnet Labs).
CVSS VectorVendor: NLnet Labs
Lifecycle Timeline
2DescriptionCVE.org
When base64 data is split up in pieces, of 3 character or less, tokens were incorrectly calculated to produce 0 bytes. This enables attackers to overwrite the stack with up to 64K of attacker controlled data. Zone files which are written out by NSD itself, such as for zones for which the NSD instance is secondary, will not be formatted like this. The zone file must be fed to NSD directly, (but it could come, for example, from an operator controlled provisioning system).
Executive ViewAI
NLnet Labs NSD is affected by a high-severity stack buffer overflow that could allow an authenticated attacker with low privileges to execute arbitrary code by submitting a crafted zone file, potentially leading to full compromise of the DNS server. The vulnerability is not reachable through normal DNS queries and does not affect zone files generated by NSD itself, but organizations with weak access controls on zone input paths are at risk. No public exploit identified at time of analysis and no vendor-released patch identified at time of analysis, so leadership should prioritize interim mitigations while awaiting an official fix.
No vendor patch available; interim mitigations include restricting zone-file input access to trusted users only, validating zone file syntax and base64 chunks before processing, running NSD with least privileges, and monitoring for unauthorized zone file changes.
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.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
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
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
Stack buffer overflow in NSD 4.14.0 (NLnet Labs authoritative DNS server) allows a party able to introduce zone data to
TCP window throttling in NLnet Labs NSD allows any unauthenticated remote attacker to crash individual serve child proce
EUVD-2026-100982
GHSA-w2rq-89vw-p64m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB