Skip to main content

NLnet Labs NSD CVE-2026-18664

| EUVDEUVD-2026-66347 HIGH
Improper Access Control (CWE-284)
2026-08-26 NLnet Labs GHSA-fw9f-54cp-j7fc
8.2
CVSS 4.0 · Vendor: NLnet Labs
View

Attack ChainAIDerived

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

  1. Access
    Identify NSD instance on little-endian host
  2. Delivery
    Determine operator uses hyphen-range ACL syntax
  3. Exploit
    Send DNS AXFR or restricted query from IP in endianness-miscalculated range
  4. Execution
    NSD byte-order bug grants unauthorized access
  5. Impact
    Retrieve restricted zone data or trigger unauthorized zone transfer

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK

1 technique across 1 tactic: Defense Evasion

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires ALL of the following conditions simultaneously: (1) NSD is configured with ACL rules using hyphen-range IP notation (e.g., 1.2.3.4-1.2.3.25) - sites using only CIDR notation or single-host entries are NOT affected; (2) the NSD instance is running on a little-endian architecture (x86, x86-64, or ARM LE) - big-endian deployments are not affected; and (3) the attacker's source IP falls within the address space that the endianness-swapped comparison erroneously accepts. No authentication is required (CVSS PR:N), and no user interaction is needed. The primary limiting factors are the non-ubiquitous use of range-based ACL syntax (many NSD deployments use CIDR notation) and the requirement for network reachability to the NSD service. Exploitation silently bypasses access control without any error logging from NSD, making detection difficult without external network monitoring.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N) scores 8.2, reflecting network-accessible, unauthenticated exploitation with high confidentiality impact, moderated by the AT:P (Attack Requirements: Present) qualifier that correctly captures the conditional nature of the flaw. Real-world priority depends heavily on deployment context: sites not using range-based ACL notation are entirely unaffected regardless of architecture, which substantially narrows the exposed population compared to the broad CPE wildcard suggest. EPSS data is not available in the provided intelligence, and the CVE is not listed in CISA KEV; no public exploit or POC has been identified. Despite the headline score, the integrity and availability impact are both zero - this is a pure access control bypass affecting confidentiality of DNS zone data. The CVSS 4.0 AT:P modifier appropriately signals that even a well-staffed DNS operations team should audit whether hyphen-range ACL syntax is in active use before treating this as the highest-priority item in their queue, though any operator relying on NSD range ACLs for zone transfer protection should treat remediation as urgent.

Exploit ScenarioDerived

An attacker operating from an IP address that should be denied by a configured NSD access control range submits a DNS zone transfer request (AXFR) or other restricted query to the NSD instance. Due to the endianness mismatch on the little-endian server, NSD's range comparison incorrectly evaluates the source IP as falling within the permitted range and grants access. No public exploit or POC is known, but the flaw is a deterministic logic error requiring no memory corruption or heap manipulation - any attacker who can reach the DNS port and whose IP happens to fall in the endianness-swapped permitted range can exploit it passively.

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 – Aug 26, 2026

IP range-based access control in NLnet Labs NSD is silently broken on little-endian systems due to an endianness mismatch in the range comparison logic. Both IPv4 and IPv6 addresses are compared as unsigned 32-bit integers using host byte order, while the actual stored values are in network byte order (big-endian), causing comparisons to produce incorrect results on the dominant x86/x86-64/ARM-LE server platforms. The practical consequence is a bidirectional access control bypass: operators relying on hyphen-range ACL syntax may inadvertently permit unauthorized IP addresses to access restricted DNS operations (such as zone transfers) while simultaneously denying legitimate clients. No public exploit has been identified at time of analysis, but the flaw is fully deterministic and requires no special attacker capability beyond network reachability.

RemediationAI

The primary fix is to apply the vendor-released patch from NLnet Labs, documented at https://www.nlnetlabs.nl/downloads/nsd/CVE-2026-18664.txt. An exact fixed version number is not independently confirmed from available data - verify the specific patched release against the advisory before deploying. As an immediate compensating control, operators should audit NSD ACL configurations for any range notation using hyphens (e.g., 1.2.3.4-1.2.3.25) and replace them with CIDR notation (e.g., 1.2.3.0/24) wherever semantically equivalent - the endianness bug is specific to the range comparison code path and CIDR-based ACLs are unaffected. Note that CIDR notation covers powers-of-two aligned blocks and cannot always express arbitrary ranges, so this substitution may require splitting one range entry into multiple CIDR entries or accepting a slightly different address set. For zone transfer restrictions, supplementing NSD ACLs with firewall-level controls (e.g., iptables/nftables rules restricting port 53 TCP to known secondary nameserver addresses) provides an independent defense layer that does not depend on NSD's range comparison logic.

Affected VersionsENISA

NSD 3.0.0 <4.15.1

Affected Packages

euvd nsd fix: 4.15.1

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 an open-source authoritative DNS server developed by NLnet Labs, used extensively by ISPs, TLD operators, and enterprises. The affected component is its IP-based access control system, which allows operators to define allowed or denied IP ranges using hyphen notation (e.g., 1.2.3.4-1.2.3.25) for controlling zone transfers, queries, and control channel access. The root cause maps to CWE-284 (Improper Access Control) and is specifically an endianness handling defect: IPv4 addresses are compared as raw unsigned 32-bit integers in host byte order against range boundaries that are stored in network byte order (big-endian). On little-endian architectures - which include x86, x86-64, and ARM LE, representing the vast majority of production servers - byte-swapping the operands produces a numerically different comparison result, causing the range check to pass or fail incorrectly. IPv6 addresses are affected identically, with each of the four 32-bit chunks in the address being miscompared the same way. The CPE cpe:2.3:a:nlnet_labs:nsd:*:*:*:*:*:*:*:* indicates all current NSD versions are affected by this logic error.

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.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.9 MEDIUM

Exploitation requires non-default range-based ACL configuration on a little-endian host (AC:H); no authentication needed (PR:N); impact is confidentiality-only with no scope change.

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

Primary rating from Vendor (NLnet Labs).

CVSS VectorVendor: NLnet Labs

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

Lifecycle Timeline

2
Patch available
Aug 26, 2026 - 10:01 EUVD
CVE Published
Aug 26, 2026 - 08:34 cve.org
HIGH 8.2

DescriptionCVE.org

When ranges are used for access control (i.e. of the form 1.2.3.4-1.2.3.25), because NSD wrongly compares the IP address with the range on little endian systems, IPs that were meant to be allowed may be denied, and, IPs that were meant to be denied access could be allowed. An IPv4 address is compared with IPv4 ranges as unsigned 32 bit numbers directly with the endianness of the host, but the values to compare are in network byte order (big-endian). With IPv6 addresses the comparison is done in 4 times a unsigned 32 bit number comparison, again with the endianness of the host where all values are actually in network bye order.

Executive ViewAI

Why It Matters

NLnet Labs NSD DNS server contains a critical access control vulnerability that creates unintended exposure of sensitive zone data to unauthorized networks while simultaneously blocking legitimate client access on mainstream server hardware. DNS operators relying on IP range-based access restrictions face dual risks of confidentiality breach and service disruption. This affects any organization using NSD's range-based ACL configurations on standard x86, x86-64, or ARM-based DNS infrastructure.

Business Impact: High
Compensating Controls

Until vendor patch is released, replace all range-based IP ACLs with explicit IP address lists in NSD configuration; implement upstream network-level access controls (firewall rules, network segmentation) to enforce DNS access restrictions; enable detailed query logging to monitor zone transfer attempts for unauthorized access; maintain engagement with NLnet Labs for patch timeline.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Medium
authoritative DNS server used by ISPs, TLDs, and enterprise resolvers
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
Partial

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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