CVE-2026-81412: Nmap < 7.992 Unbounded Allocation via Server-Declared Array Count in msrpctypes.lua

Published Nov 25, 2026
·
Updated

Nmap before 7.992 contains an excessive memory allocation vulnerability in the unmarshallarray 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).

Affected Software

1 affected component
Nmap Nmap<7.992

Event History

Nov 25, 2026
CVE Published
via MITRE·05:31 PM
Data Sourced
via MITRE·05:31 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Are common Nmap scan modes affected?

Yes. The vulnerable library is used by smb-enum-shares.nse, which is included in Nmap's default script category and can run with -sC or -A.

2

What does an attacker need to do to trigger the issue?

The attacker needs to operate a malicious SMB server on a host being scanned. They can provide an EntriesRead value of 0xFFFFFFFF with an empty buffer to the scanner.

3

What can be done if upgrading is not immediately possible?

Avoid running smb-enum-shares.nse against untrusted SMB servers, including by avoiding scan modes that invoke the default script category such as -sC and -A. Upgrade Nmap to version 7.992 or later when possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203