Home › CVE › Vulnerabilities
CVE-2026-81412 — Nmap
One of 15 Nmap vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesResearch article
Nmap Memory Allocation Flaw in SMB Scanning Scripts
| CVE | CVE-2026-81412 |
|---|---|
| Vendor and product | Nmap |
| Published | November 25, 2026 21:35 UTC |
| Research cut-off | November 25, 2026 21:10 UTC |
| Sources reviewed | 2: NVD record (last modified 2026-11-25); CISA KEV catalog |
Executive summary
CVE-2026-81412 involves an excessive memory allocation vulnerability in Nmap's SMB scanning scripts, rated CVSS 3.1 base score 6.5 MEDIUM by disclosure@vulncheck.com [1]. The flaw affects Nmap versions before 7.992 and is fixed in 7.992 [1]. The reviewed sources do not report exploitation [2]. The main action is to update to the fixed version.
Key points
- CVE-2026-81412 is a memory allocation vulnerability in Nmap's SMB scanning scripts [1].
- The CVSS 3.1 base score is 6.5 MEDIUM, rated by disclosure@vulncheck.com [1].
- The vulnerability affects Nmap versions before 7.992 and is fixed in 7.992 [1].
- The reviewed sources do not report exploitation [2].
- The main action is to update to the fixed version of Nmap.
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 4.0 | CVSS 3.1 |
|---|---|---|---|---|---|
| CVE-2026-81412 | Nmap | Nmap | CWE-789 | 7.1 HIGH, scored by disclosure@vulncheck.com (Secondary) | 6.5 MEDIUM, scored by disclosure@vulncheck.com (Primary) |
| Published | Last Modified | Record Status | |||
| 2026-11-25T18:18:56 | 2026-11-25T18:18:56 | Received |
Vulnerability description
A vulnerability exists in the unmarshallarray function of Nmap's NSE msrpctypes.lua library, which fails to validate the entry count provided by an SMB server. The record states that an SMB server controlled by an attacker, running on a host that gets scanned, can report an EntriesRead value of 0xFFFFFFFF alongside an empty buffer, leading to prolonged CPU use and memory exhaustion [1].
Attack surface and exploitation prerequisites
The CVSS 3.1 vector indicates the vulnerability requires user interaction. The record states that an SMB server controlled by an attacker, running on a host that gets scanned, can claim a count of entries that sets off the flaw [1].
Impact analysis
The CVSS 3.1 vector highlights the high impact on system availability. The attack can cause the Nmap process to consume memory and spin the CPU, potentially leading to a denial of service [1].
Affected products and versions
| Affected Version | Fixed Version |
|---|---|
| Nmap < 7.992 | 7.992 |
Exploitation and threat intelligence status
CVE-2026-81412 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-25 [2]. The reviewed sources do not report exploitation.
Detection and exposure assessment
To determine if a system is exposed, check if it runs Nmap versions earlier than 7.992. The affected version range is explicitly listed in the CVE record [1].
Remediation
Upgrade Nmap to version 7.992, the fixed version [1].
Remediation checklist
Evidence gaps
- The sources do not describe the affected component's internals.
- The sources do not mention a workaround.
- The sources do not describe a scenario or attack lifecycle.
- The sources do not provide indicators of compromise.
- The sources do not list a fixed version for all affected products.
References
- CVE-2026-81412 record. NIST National Vulnerability Database (NVD), 2026-11-25. https://nvd.nist.gov/vuln/detail/CVE-2026-81412. Accessed 2026-11-25.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-25. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-25.
Summary
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).
Severity breakdown
High · 7.1
An attacker without an account can exploit this over the network if a user views or visits something.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- high on availability, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-789: Memory Allocation with Excessive Size Value
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Nmap | < 7.992 | 7.992 |
References by type
Patches and fixed releases
- github.com/nmap/nmap/commit/9de32e381e5fde01e18f1a62b04b3c44ded59c24
- github.com/nmap/nmap/commit/cd6ddce888f6920e0acb88000555de12ba554029
Other references
Affected
- Nmap
Frequently asked questions
What is CVE-2026-81412?
CVE-2026-81412 involves an excessive memory allocation vulnerability in Nmap's SMB scanning scripts, rated CVSS 3.1 base score 6.5 MEDIUM by disclosure@vulncheck.com. The flaw affects Nmap versions before 7.992 and is fixed in 7.992. The reviewed sources do not report exploitation. The main action is to update to the fixed version. Weakness type: Memory Allocation with Excessive Size Value (CWE-789).
How severe is CVE-2026-81412?
CVE-2026-81412 has a CVSS 4.0 base score of 7.1 (high), from the CNA (vulncheck.com). An attacker without an account can exploit this over the network if a user views or visits something.
Is CVE-2026-81412 being exploited?
Not as far as is known: CVE-2026-81412 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.4% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-81412?
Nmap < 7.992 (fixed in 7.992).
How do I fix CVE-2026-81412?
Upgrade Nmap to version 7.992 to address the vulnerability. Verify the current version of Nmap to ensure it is not in the affected range. Monitor network traffic for unusual SMB activity that may indicate exploitation attempts.