Skip to main content

NSD CVE-2026-12246

| EUVDEUVD-2026-39184 HIGH
Classic Buffer Overflow (CWE-120)
2026-06-25 NLnet Labs GHSA-xgm5-85mh-3559
7.2
CVSS 4.0 · Vendor: NLnet Labs
View

Attack ChainAIDerived

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

  1. Access
    Gain ability to supply zone data (PR:L)
  2. Delivery
    Craft APL RR with oversized afdlength
  3. Exploit
    Deliver record into NSD-served zone
  4. Execution
    NSD serializes zone to disk
  5. Persist
    Overflow stack with ≤111 bytes
  6. Impact
    Crash 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).

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

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

Alert me

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

NSD 4.14.0 <4.14.3

Affected Packages

euvd nsd fix: 4.14.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 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

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

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

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

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
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 25, 2026 - 08:01 EUVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Medium
widely respected authoritative DNS server, but narrower footprint than BIND
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

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.2%
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
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
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.

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-101337 HIGH
8.7 Oct 14

Stack-based buffer overflow in NLnet Labs NSD is triggered when the daemon parses a zone file containing base64 data spl

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-18916 MEDIUM
6.9 Aug 26

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

Vendor StatusVendor

SUSE

Severity: Important

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