{"affected":[{"defaultStatus":"unaffected","product":"Nmap","source":"CNA: VulnCheck","vendor":"Nmap","versions":[{"lessThan":"7.992","status":"affected","version":"0","versionType":"custom"}]}],"cveId":"CVE-2026-81412","cwes":["CWE-789"],"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).","epss":null,"exploits":[],"kev":null,"metrics":[{"score":7.1,"severity":"high","source":"CNA: VulnCheck","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","version":"4.0"},{"score":6.5,"severity":"medium","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"}],"modifiedAt":1795627874207,"publishedAt":1795627874207,"references":[{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/nmap/nmap/commit/cd6ddce888f6920e0acb88000555de12ba554029"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/nmap/nmap/commit/9de32e381e5fde01e18f1a62b04b3c44ded59c24"},{"source":"CNA: VulnCheck","tags":["release-notes"],"url":"https://github.com/nmap/nmap/blob/v7.992/CHANGELOG"},{"source":"CNA: VulnCheck","tags":["release-notes"],"url":"https://nmap.org/changelog.html"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/nmap-7.992-unbounded-allocation-via-server-declared-array-count-in-msrpctypes-lua"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/nmap/nmap/commit/cd6ddce888f6920e0acb88000555de12ba554029"},{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/nmap/nmap/commit/9de32e381e5fde01e18f1a62b04b3c44ded59c24"}],"revision":"93a424e30e2a3a571e389a08eb638d962924676fbe39f32f3e29a632a95614b6","sources":[{"modifiedAt":1795627874207,"name":"CNA: VulnCheck","retrievedAt":1795630207295,"url":"https://www.cve.org/CVERecord?id=CVE-2026-81412"}],"ssvc":null,"status":"published","title":"Nmap < 7.992 Unbounded Allocation via Server-Declared Array Count in msrpctypes.lua","updatedAt":1795630207295}