CVE-2026-18664

Wrong interpretation of ACL ranges

Published Aug 26, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

NSD incorrectly compares IPv4 and IPv6 addresses against ACL ranges on little endian systems by using the host’s byte order instead of network byte order. This logic fault causes IP addresses that should be allowed to be denied and IP addresses that should be denied to be allowed, creating a risk of unauthorized access or service disruption. The flaw is categorized as an access‑control weakness (CWE‑284) and a logic error (CWE‑697).

Affected Systems

NLnet Labs NSD versions prior to 4.15.1 are vulnerable. The official fix was released with NSD 4.15.1 and all later releases.

Risk and Exploitability

The CVSS score of 8.2 demonstrates high severity, but the EPSS score is currently unavailable. The vulnerability is not listed in the CISA KEV catalog. Because the flaw operates on IP comparison during normal DNS request handling, it is likely exploitable remotely by passing traffic that falls within or outside the intended ACL ranges. Once the altered comparison is triggered, an attacker could evade ACL restrictions or block legitimate clients, thereby compromising confidentiality, integrity, or availability of the DNS service.

Remediation

Vendor Solution

This issue is fixed in 4.15.1 and all later versions.


OpenCVE Recommended Actions

  • Upgrade NSD to version 4.15.1 or later.
  • If an upgrade cannot be performed immediately, modify the NSD configuration to avoid using ACL ranges or replace them with single‑address entries or allowlists that are not impacted by endianness.
  • Maintain monitoring of DNS logs to detect anomalous access patterns that could indicate exploitation of the ACL logic flaw.

Generated by OpenCVE AI on August 26, 2026 at 09:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:nlnetlabs:nsd:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Nlnetlabs
Nlnetlabs nsd
Vendors & Products Nlnetlabs
Nlnetlabs nsd
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Wrong interpretation of ACL ranges
Weaknesses CWE-284
CWE-697
References
Metrics cvssV4_0

{'score': 8.2, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
NLnet Labs
Published
Updated
Aug 26, 2026, 2:47 PM
Reserved
Aug 3, 2026, 1:23 PM
Status
Analyzed
Published
Aug 26, 2026, 9:16 AM
Modified
Sep 8, 2026, 8:02 PM