Skip to content
CVSS 9.1 · CRITICAL

CVE-2026-18664Access control bypass in NLnet Labs NSD

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.

View on NVD

Analysis

The NSD DNS server contains a critical vulnerability in how it handles IP range access controls on little-endian systems (x86_64). An attacker can bypass IP-based restrictions, potentially allowing unauthorized access to services or data that should be restricted.

Relevant roles

ciberseguridadCloudLinuxBackend

Severity

Score: 9.1(CRITICAL)
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
AV: NETWORK
AC: LOW
PR: NONE
UI: NONE
S: UNCHANGED
C: NONE
I: HIGH
A: HIGH
Weakness (CWE): CWE-284CWE-697

EPSS

Probability of exploitation (next 30 days): 0.0032 (0.3%)
Percentile: 24.0%
EPSS: 2026-09-08

Affects

nlnetlabs:nsd

Technical description

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.

Published: 8/26/2026, 9:16:45 AM
Last modified: 9/8/2026, 8:02:34 PM

References

HomeEventsBlogResourcesCoursesTeam