Excessive Memory Allocation Vulnerability in Nmap by Insecure SMB Server Declaration
CVE-2026-81412
7.1HIGH
What is CVE-2026-81412?
Nmap versions prior to 7.992 contain a vulnerability within the unmarshall_array function of the NSE msrpctypes.lua library. This vulnerability allows a malicious SMB server to declare an EntriesRead value of 0xFFFFFFFF with an empty buffer. As a result, this can lead to a prolonged CPU spin and excessive memory consumption by the Nmap process during scans, particularly when using the smb-enum-shares.nse script in the default script category. This behavior poses a risk of exhausting system resources and can disrupt normal operations.
Affected Version(s)
Nmap 0 < 7.992
