8.2High

CVE-2026-18664Wrong interpretation of ACL ranges

NLnet Labs NSD Published: (2 months ago)

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.

Weakness (CWE): CWE-284CWE-697

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
NLnet Labs NSD 3.0.0 – < 4.15.1
nlnetlabs nsd 3.0.0 – < 4.15.1

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:nlnetlabs:nsd:*:*:*:*:*:*:*:* ≥ 3.0.0 < 4.15.1