Skip to content

Nmap 7.992: broader CIDR added after narrower CIDR can bypass Ncat --deny and Nmap --exclude #3565

Closed

Description

@gmkbenjamin

In Nmap 7.992, the shared address set misses addresses in a broader CIDR when that range follows a narrower one.

Reproduce with a list scan, which sends no scan probes:

./nmap -sL -n 10.150.0.20 --exclude 10.200.0.0/16,10.0.0.0/8

Expected: 0 targets. Observed: 10.150.0.20 is listed. Reversing the CIDRs excludes it. In an isolated local test, Ncat likewise accepted 10.150.0.20 despite --deny 10.200.0.0/16,10.0.0.0/8.

The apparent cause is the equality case in nbase/nbase_addrset.c's trie_split. This may be a regression or variant of #2257. AI assisted with this report; the local reproduction was run, and independent human verification is pending.

Activity

  1. added a commit that references this issue on Oct 29, 2026
    0b2b71a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions