{"id":"CVE-2026-81412","aliases":["CVE-2026-81412"],"related":[],"kind":"vulnerability","state":"published","title":"Nmap < 7.992 Unbounded Allocation via Server-Declared Array Count in msrpctypes.lua","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"}],"published":"2026-11-25T17:31:14.207Z","modified":"2026-11-30T21:17:33.107Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":7.1,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-789"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"7.992","status":"affected"}],"vendor":"Nmap","product":"Nmap","repo":"https://github.com/nmap/nmap","source":"cvelist"}],"references":[{"url":"https://github.com/nmap/nmap/commit/cd6ddce888f6920e0acb88000555de12ba554029","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nmap/nmap/commit/9de32e381e5fde01e18f1a62b04b3c44ded59c24","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nmap/nmap/blob/v7.992/CHANGELOG","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://nmap.org/changelog.html","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/nmap-7.992-unbounded-allocation-via-server-declared-array-count-in-msrpctypes-lua","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Karan Bamal (SentinelOne)"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-30T20:04:29.998Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-81412","url":"https://www.cve.org/CVERecord?id=CVE-2026-81412","licence":"CVE Terms of Use","modified":"2026-11-30T20:04:40.767Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-81412","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81412","licence":"Public domain","modified":"2026-11-30T21:17:33.107Z"}],"updatedAt":"2026-11-30T21:32:15.536Z","epss":{"score":0.0045,"percentile":0.40803,"date":"2026-12-01T12:00:22.000Z"}}