{"id":"CVE-2026-81412","aliases":[],"title":"Nmap < 7.992 Unbounded Allocation via Server-Declared Array Count in msrpctypes.lua","originalDescription":"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).","severity":{"cvss":7.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.0045,"percentile":0.30991},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Nmap","range":">=0, <7.992","fixed":"7.992"}],"references":[{"url":"https://github.com/nmap/nmap/commit/cd6ddce888f6920e0acb88000555de12ba554029","type":"patch"},{"url":"https://github.com/nmap/nmap/commit/9de32e381e5fde01e18f1a62b04b3c44ded59c24","type":"patch"},{"url":"https://github.com/nmap/nmap/blob/v7.992/CHANGELOG","type":"release-notes"},{"url":"https://nmap.org/changelog.html","type":"release-notes"},{"url":"https://www.vulncheck.com/advisories/nmap-7.992-unbounded-allocation-via-server-declared-array-count-in-msrpctypes-lua","type":"third-party-advisory"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81412.json","type":"advisory"},{"url":"https://github.com/nmap/nmap","type":"package"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81412","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-25T20:25:28.823Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81412","license":"NVD terms of use","firstSeenAt":"2026-11-25T18:46:41.583Z"},{"name":"osv","at":"2026-11-26T21:45:21.998Z","url":"https://osv.dev/vulnerability/CVE-2026-81412","license":"CC-BY 4.0","firstSeenAt":"2026-11-25T19:19:50.723Z"},{"name":"cvelistV5","at":"2026-11-28T22:40:58.571Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-81412","license":"CVE Terms of Use","firstSeenAt":"2026-11-25T18:10:54.220Z"}],"firstSeenAt":"2026-11-25T18:10:54.220Z","publishedAt":"2026-11-25T17:31:14.207Z","modifiedAt":"2026-11-25T20:15:25.900Z"}