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
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).
| Product | Versions |
|---|---|
| Nmap Nmap | before 7.992 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.1 High | VulnCheck | |
| 3.1 | 6.5 Medium | VulnCheck |
Weaknesses
- CWE-789 Memory Allocation with Excessive Size Value
References
- Fix Commit (MSRPC unmarshall errors)Patch
- NSE 400MB Memory Limit CommitPatch
- Nmap 7.992 ChangelogRelease Notes
- Nmap ChangelogRelease Notes
- VulnCheck Advisory: Nmap < 7.992 Unbounded Allocation via Server-Declared Array Count in msrpctypes.luaThird-Party Advisory
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.