CVE-2026-81412
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.45%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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).
- CVSS 4.0
- 7.1 HIGHCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/M
- EPSS
- 0.45% probability · 31th percentile
- Public exploits
- None in Exploit-DB
- CISA KEV
- Not listed
- Weakness
- CWE-789
- Source
- disclosure@vulncheck.com
EPSS moved from 0.4% on 26 November 2026 to 0.4% on 27 November 2026.
References
- https://github.com/nmap/nmap/blob/v7.992/CHANGELOG
- https://github.com/nmap/nmap/commit/9de32e381e5fde01e18f1a62b04b3c44ded59c24
- https://github.com/nmap/nmap/commit/cd6ddce888f6920e0acb88000555de12ba554029
- https://nmap.org/changelog.html
- https://www.vulncheck.com/advisories/nmap-7.992-unbounded-allocation-via-server-declared-array-count-in-msrpctypes-lua
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.