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

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-11-25T17:31:14.207Z
- Modified: 2026-11-30T21:17:33.107Z
- Weaknesses: CWE-789
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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).

(As written by CVE List.)

## Affected

- Nmap Nmap: before 7.992

## Every score

- VulnCheck: CVSS:4.0 7.1 High `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`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/nmap/nmap/commit/cd6ddce888f6920e0acb88000555de12ba554029> (patch)
- <https://github.com/nmap/nmap/commit/9de32e381e5fde01e18f1a62b04b3c44ded59c24> (patch)
- <https://github.com/nmap/nmap/blob/v7.992/CHANGELOG> (release-notes)
- <https://nmap.org/changelog.html> (release-notes)
- <https://www.vulncheck.com/advisories/nmap-7.992-unbounded-allocation-via-server-declared-array-count-in-msrpctypes-lua> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-81412](https://www.cve.org/CVERecord?id=CVE-2026-81412), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-81412](https://nvd.nist.gov/vuln/detail/CVE-2026-81412), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-81412 · Whole record: https://cve.day/CVE-2026-81412.json · Rebuilt by cve.day 2026-11-30T21:32:15.536Z
