{"id":"CVE-2026-81412","summary":"Nmap \u003c 7.992 Unbounded Allocation via Server-Declared Array Count in msrpctypes.lua","details":"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).","modified":"2026-11-25T19:00:13.168961630Z","published":"2026-11-25T17:31:14.207Z","database_specific":{"cwe_ids":["CWE-789"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81412.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81412.json"},{"type":"PACKAGE","url":"https://github.com/nmap/nmap"},{"type":"ADVISORY","url":"https://github.com/nmap/nmap/blob/v7.992/CHANGELOG"},{"type":"FIX","url":"https://github.com/nmap/nmap/commit/9de32e381e5fde01e18f1a62b04b3c44ded59c24"},{"type":"FIX","url":"https://github.com/nmap/nmap/commit/cd6ddce888f6920e0acb88000555de12ba554029"},{"type":"ADVISORY","url":"https://nmap.org/changelog.html"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81412"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/nmap-7.992-unbounded-allocation-via-server-declared-array-count-in-msrpctypes-lua"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nmap/nmap","events":[{"introduced":"0"},{"fixed":"0ee561663c1d7d2d4e708cd414dccfd3d9df30d9"},{"fixed":"cd6ddce888f6920e0acb88000555de12ba554029"},{"fixed":"9de32e381e5fde01e18f1a62b04b3c44ded59c24"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"7.992"}]},{"range":[{"fixed":"cd6ddce888f6920e0acb88000555de12ba554029"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"9de32e381e5fde01e18f1a62b04b3c44ded59c24"}]}]}}],"versions":["v7.991"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-81412.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}