freenode

← CVE tracker

CVE-2026-81412

Nmap < 7.992 Unbounded Allocation via Server-Declared Array Count in msrpctypes.lua

Severity
high CVSS 7.1 (v4.0)
Affects
Nmap
Weakness
CWE-789: Memory Allocation with Excessive Size Value
Published
25 November 2026 by VulnCheck
Nmap before 7.992 contains an excessive memory allocation vulnerability in the unmarshall_array function of the NSE msrpctypes.lua library, which trusts the entry count declared by the server. A malicious SMB server on a scanned host can declare an EntriesRead value of 0xFFFFFFFF with an empty buffer, causing a prolonged CPU spin and exhausting the memory of the Nmap process; the library is used by smb-enum-shares.nse in the default script category (-sC, -A).

Our coverage

We have not written about this one. Know why it matters? Send a tip.