CVE-2026-81412
published high CVSS 4.0 · 7.1Nmap < 7.992 Unbounded Allocation via Server-Declared Array Count in msrpctypes.lua
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Nmap | — | Nmap0 to < 7.992 · Other versions: unaffected | Affected | Not stated | VulnCheck |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
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).
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.5 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Nmap | Nmap | 0 to < 7.992 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-789 Memory Allocation with Excessive Size Value
References
5- Nmap 7.992 Changelog https://github.com/nmap/nmap/blob/v7.992/CHANGELOG
- NSE 400MB Memory Limit Commit https://github.com/nmap/nmap/commit/9de32e381e5fde01e18f1a62b04b3c44ded59c24
- Fix Commit (MSRPC unmarshall errors) https://github.com/nmap/nmap/commit/cd6ddce888f6920e0acb88000555de12ba554029
- Nmap Changelog https://nmap.org/changelog.html
- VulnCheck Advisory: Nmap < 7.992 Unbounded Allocation via Server-Declared Array Count in msrpctypes.lua https://www.vulncheck.com/advisories/nmap-7.992-unbounded-allocation-via-server-declared-array-count-in-msrpctypes-lua
Provider assertions
2VulnCheck · cna
Nmap < 7.992 Unbounded Allocation via Server-Declared Array Count in msrpctypes.lua
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 54e09505c012c52b572444db7c2e2c0ae6bd4d146406e7da694524826994ed2e
- Ingested
- 30 Nov 2026, 20:16:30 UTC
- Source record
- Official CVE record