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

State
Published
Severity
7.1 High
Published
Nov 25, 2026
Updated
Nov 30, 2026
Reserved
Aug 26, 2026

Read the record on cve.org

Description

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).

ProductVersions
Nmap Nmapbefore 7.992 Affected

Weaknesses

  • CWE-789 Memory Allocation with Excessive Size Value

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.