---
id: CVE-2026-18664
title: When ranges are used for access control (i.e
summary: >-
  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 t…
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'
cwe:
  - CWE-284
  - CWE-697
vendor: nlnetlabs
product: nsd
affected:
  - 'nsd >= 3.0.0, < 4.15.1'
patched:
  - nsd 4.15.1
published: '2026-08-26'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T20:02:34.590'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-18664'
references:
  - url: 'https://www.nlnetlabs.nl/downloads/nsd/CVE-2026-18664.txt'
    label: sep@nlnetlabs.nl
tags:
  - nvd
epss: 0.00259
epssPercentile: 0.15678
ingestedAt: '2026-09-08T20:10:03.158Z'
---

## Overview

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.

## Affected

- `nsd >= 3.0.0, < 4.15.1`

## Remediation

Upgrade past the affected range:

- `nsd 4.15.1`
