{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-18664",
        "assignerOrgId": "206fc3a0-e175-490b-9eaa-a5738056c9f6",
        "state": "PUBLISHED",
        "assignerShortName": "NLnet Labs",
        "dateReserved": "2026-08-03T13:23:02.012Z",
        "datePublished": "2026-08-26T08:34:22.871Z",
        "dateUpdated": "2026-08-26T08:37:21.775Z"
    },
    "containers": {
        "cna": {
            "title": "Wrong interpretation of ACL ranges",
            "references": [
                {
                    "url": "https://www.nlnetlabs.nl/downloads/nsd/CVE-2026-18664.txt",
                    "tags": [
                        "vendor-advisory"
                    ]
                }
            ],
            "solutions": [
                {
                    "lang": "en",
                    "value": "This issue is fixed in 4.15.1 and all later versions."
                }
            ],
            "affected": [
                {
                    "vendor": "NLnet Labs",
                    "product": "NSD",
                    "defaultStatus": "unaffected",
                    "versions": [
                        {
                            "version": "3.0.0",
                            "status": "affected",
                            "lessThan": "4.15.1",
                            "versionType": "semver"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Qifan Zhang from Palo Alto Networks"
                },
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Claude and Ada Logics"
                }
            ],
            "timeline": [
                {
                    "time": "2026-07-13T21:35:01.000Z",
                    "lang": "en",
                    "value": "Issue reported by Qifan Zhang"
                },
                {
                    "time": "2026-07-30T13:03:37.000Z",
                    "lang": "en",
                    "value": "NLnet Labs shares patch"
                },
                {
                    "time": "2026-08-01T08:15:22.000Z",
                    "lang": "en",
                    "value": "Qifan Zhang verifies patch"
                },
                {
                    "time": "2026-08-26T12:00:00.000Z",
                    "lang": "en",
                    "value": "Issue reported by Claude and Ada Logics"
                },
                {
                    "time": "2026-08-26T12:00:00.000Z",
                    "lang": "en",
                    "value": "Fix released with version 4.15.1"
                }
            ],
            "datePublic": "2026-08-26T12:00:00.000Z",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "IP range access control restrictions can be bypassed for some unintended IP addresses on little endian systems"
                        }
                    ],
                    "cvssV4_0": {
                        "version": "4.0",
                        "baseScore": 8.2,
                        "baseSeverity": "HIGH",
                        "vectorString": "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"
                    }
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-284",
                            "description": "CWE-284 Improper Access Control",
                            "type": "CWE"
                        },
                        {
                            "lang": "en",
                            "cweId": "CWE-697",
                            "description": "CWE-697 Incorrect Comparison",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "206fc3a0-e175-490b-9eaa-a5738056c9f6",
                "shortName": "NLnet Labs",
                "dateUpdated": "2026-08-26T08:37:21.775Z"
            },
            "x_generator": {
                "engine": "cvelib 1.8.0"
            }
        }
    }
}