CVE-2026-81412 · Nmap / Nmap
CVE-2026-81412
Full advisory details, affected packages, severity context, and original source.
Affected technology
Affected versions and fixes
Version information comes from OSV, NVD, and the CVE vendor record. Each source may describe a different package, release branch, or platform.
Nmap / Nmap · custom
CVE vendor record- affected: All earlier versions · before 7.992 (exclusive) · custom
Fixed releases / commits: Not explicitly provided by this source. Check the vendor guidance.
Repository: https://github.com/nmap/nmap
Other versions: unaffected according to the vendor record.
Advisory overview
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).
Related 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
