Skip to main content

NLnet Labs NSD EUVDEUVD-2026-100982

| CVE-2026-101337 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-10-14 NLnet Labs GHSA-w2rq-89vw-p64m
8.7
CVSS 4.0 · Vendor: NLnet Labs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted zone file via provisioning
  2. Delivery
    Base64 split into ≤3-char chunks
  3. Exploit
    Token length miscalculated as zero bytes
  4. Execution
    Stack overwritten with 64K controlled data
  5. Impact
    Code 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

NSD 4.10.0 <4.15.3

Affected Packages

euvd nsd fix: 4.15.3

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

Vendor (NLnet Labs) PRIMARY 8.7 HIGH
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
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (NLnet Labs).

CVSS VectorVendor: NLnet Labs

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 14, 2026 - 12:02 EUVD
CVE Published
Oct 14, 2026 - 10:56 cve.org
HIGH 8.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
NSD is a popular authoritative-only DNS daemon, common but not ubiquitous
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Nsd

View all
CVE-2026-101341 HIGH
8.7 Oct 14

Stack-based buffer overflow in NLnet Labs NSD's zone-file RDATA parser allows an attacker with the ability to supply a c

CVE-2026-101339 HIGH
8.7 Oct 14

Loading a crafted zone file into NLnet Labs NSD can overflow a stack buffer and overwrite up to 191 bytes with attacker-

CVE-2026-101338 HIGH
8.7 Oct 14

A stack-based buffer overflow in NLnet Labs NSD's parsing of SVCB/HTTPS resource records allows an attacker who can supp

CVE-2026-12245 HIGH
8.7 Jun 25

Remote denial-of-service in NLnet Labs NSD (authoritative DNS name server) version 4.13.0 and later allows an unauthenti

CVE-2026-12244 HIGH
8.7 Jun 25

Heap overflow in NLnet Labs NSD allows a malicious or compromised zone primary to corrupt memory on a secondary (slave)

CVE-2026-19538 HIGH
8.2 Aug 26

NSD's proxy protocol port fails to re-evaluate BLOCKED access control list entries on the second DNS query sent over a k

CVE-2026-19401 HIGH
8.2 Aug 26

NSD authoritative DNS server crashes serve child processes when receiving a crafted DNS message containing exactly 17 DN

CVE-2026-18664 HIGH
8.2 Aug 26

IP range-based access control in NLnet Labs NSD is silently broken on little-endian systems due to an endianness mismatc

CVE-2026-12490 HIGH
8.2 Jun 25

Zone-transfer authentication bypass in NLnet Labs NSD allows unauthorized secondaries to obtain full zone contents witho

CVE-2016-6173 HIGH
7.5 Feb 09

NSD before 4.1.11 allows remote DNS master servers to cause a denial of service (/tmp disk consumption and slave server

CVE-2026-12246 HIGH
7.2 Jun 25

Stack buffer overflow in NSD 4.14.0 (NLnet Labs authoritative DNS server) allows a party able to introduce zone data to

CVE-2026-18916 MEDIUM
6.9 Aug 26

TCP window throttling in NLnet Labs NSD allows any unauthenticated remote attacker to crash individual serve child proce

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy