Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHost malicious SMB server on target
-
DeliveryLure Nmap default-script scan (-sC/-A)
-
Exploitsmb-enum-shares parses MSRPC reply
-
ExecutionDeclare EntriesRead 0xFFFFFFFF with empty buffer
-
Persistunmarshall_array spins and allocates unbounded
-
ImpactExhaust memory of scanning Nmap process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
|
| Exploitation Conditions | Exploitation requires the victim to run Nmap (version before 7.992) with the default script category - invoked by -sC or -A - against a host the attacker controls, because the vulnerable code path is reached through smb-enum-shares.nse parsing a malicious SMB/MSRPC response. The specific trigger is a server-declared EntriesRead value of 0xFFFFFFFF accompanied by an empty buffer, which the unmarshall_array function in nselib/msrpctypes.lua trusts without bounds-checking. Limiting factors that reduce real-world risk: the attacker cannot initiate the attack - it only fires when an operator actively scans the attacker-controlled host with default/aggressive scripts (UI:P); the impact is confined to availability of the local Nmap process (self-DoS), with no confidentiality or integrity effect and no impact on other systems; and scans without the default script set do not reach the vulnerable function. |
| Impact | This is a genuine but bounded availability issue, not a top-tier emergency. The impact signals are internally consistent: the CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P) and the description both describe availability-only harm (VA:H, VC:N/VI:N) - a denial-of-service that exhausts the memory of the Nmap process itself, i.e. the scanning client is the victim, not the scanned server. The direction of attack is the critical nuance: the attacker operates a malicious SMB server on a host that the victim chooses to scan, so exploitation depends on the victim running Nmap with default scripts (UI:P) rather than on any attacker-reachable service. No CISA KEV listing is present, so there is no confirmed active exploitation; no EPSS score was provided in the input, so probabilistic exploitation likelihood cannot be quantified here; and no proof-of-concept or exploit reference is listed (only patch, changelog and a VulnCheck advisory), so there is no public exploit identified at time of analysis. The vuln.today decision label is 'this_week', consistent with a patched, moderate-severity availability bug rather than act_now/emergency. Net: real and worth patching on a normal cycle, but the 7.1 score reflects client-side self-DoS that only triggers when an operator scans an attacker-controlled host - lower practical urgency than the network-vector framing alone might suggest. |
| Exploit ScenarioDerived | An attacker stands up a malicious SMB service on a host and waits for (or lures) a security operator to scan it with Nmap's default script set (-sC or -A). When smb-enum-shares.nse parses the MSRPC response, the server declares an EntriesRead count of 0xFFFFFFFF with an empty buffer, causing unmarshall_array to spin and allocate until the Nmap process exhausts memory. Attack complexity is low (AC:L) but exploitation is passive and client-dependent (UI:P) - it requires the victim to initiate the scan; no public exploit is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Memory exhaustion and prolonged CPU spin in Nmap's NSE MSRPC library (nselib/msrpctypes.lua) affects Nmap releases before 7.992 and is triggered when the scanner parses a malicious SMB/MSRPC response. A hostile SMB server on a scanned host can declare an EntriesRead count of 0xFFFFFFFF with an empty buffer, and because unmarshall_array trusts the server-supplied element count without validating it against the actual packet size, the nmap process allocates against that claim and burns CPU, degrading or exhausting local memory. Only operators who scan an attacker-controlled host with the default script set (-sC or -A, which loads smb-enum-shares.nse) are exposed; the attacker cannot initiate the scan, and the impact is limited to the availability of the local Nmap process (self-DoS), with no confidentiality or integrity effect. No confirmed active exploitation (not in CISA KEV) and no public exploit identified at time of analysis; the vendor has released a fix in 7.992.
RemediationAI
Vendor-released patch: Nmap 7.992. Upgrading to 7.992 (or later) replaces the trusting MSRPC unmarshalling with buffer-derived length validation and is the complete fix; confirm the installed version with 'nmap --version' and obtain packages from https://nmap.org/download.html, with release notes at https://nmap.org/changelog.html and https://github.com/nmap/nmap/blob/v7.992/CHANGELOG. Where upgrading must be staged, the exposure can be narrowed because scans that do not use the default script set never reach the vulnerable function: avoid -sC/-A (or the default category) when scanning hosts you do not control, and instead invoke only the specific scripts you need, deliberately excluding smb-enum-shares against untrusted SMB servers - the trade-off is that share enumeration and other default-category checks are skipped, so assessments of untrusted hosts become less complete. Given the reporter assessment and the 'this week' priority, patching should be scheduled in the current remediation cycle rather than treated as an out-of-band emergency, since the issue is a self-DoS of the scanning process triggered only by the operator's own scan.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Nmap Scripting Engine libraries implement MSRPC/NDR unmarshalling in Lua, and nselib/msrpctypes.lua is the shared parser used by SMB-related scripts including smb-enum-shares.nse. The root cause is CWE-789 (Memory Allocation with Excessive Size Value): in the NDR array unmarshalling path, unmarshall_array reads the conformant-array fields (max count, offset, actual count) from the network buffer and uses the server-declared count as the authoritative length of the data to process rather than cross-checking it against the number of bytes actually present. A malicious SMB server can therefore answer an MSRPC request with EntriesRead = 0xFFFFFFFF while supplying an empty buffer, causing the parser to spin and attempt an allocation sized by the claimed count. The upstream fix (commits cd6ddce888f6920e0acb88000555de12ba554029 and 9de32e381e5fde01e18f1a62b04b3c44ded59c24) reworks this: the int8 array path moves to a single string.unpack("<I4I4s4") that derives the payload from the buffer itself, the per-type "#data - pos + 1 < N" pre-checks are removed in favour of asserting bounds, and the unicode string path now asserts endpos <= #buffer. In other words, the trust placed in the peer-declared count is replaced by buffer-derived length validation. The vulnerable code path is reached only through SMB/MSRPC script execution, so exposure is a function of which NSE scripts the operator runs against the scanned host.
Know when Nmap gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable malicious server, low complexity, no attacker auth (PR:N); victim must initiate the scan (UI:R); availability-only DoS of the local Nmap process, so C:N/I:N/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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).
Executive ViewAI
Older releases of Nmap (before 7.992) contain a parsing vulnerability in the NSE MSRPC library that can cause the scanning process to exhaust memory and CPU when it encounters a malicious SMB server. The impact is a self-denial of service: only security staff actively scanning an attacker-controlled host with the default script set are affected, and the availability of the local Nmap process is degraded-no data is exposed or altered. Leadership should care because unpatched scanning tools used by security operations could be disrupted, but risk is limited to authorized scanning activity against hostile hosts.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
The http-domino-enum-passwords.nse script in NMap before 6.40, when domino-enum-passwords.idpath is set, allows remote s
An issue was discovered in Npcap 0.992. Rated high severity (CVSS 7.8), this vulnerability is low attack complexity. Pub
Nmap through 7.70, when the -sV option is used, allows remote attackers to cause a denial of service (stack consumption
Out-of-bounds reads and a process crash in Nmap through 7.99 can be triggered remotely by any host that is being scanned
A use-after-free in Nmap's parallel DNS resolver (DNS::ResolverImpl::process_request in libnetutil/massdns.cc) affects N
Use-after-free in Nmap's parallel DNS resolver (libnetutil/massdns.cc) in all versions before 7.992 allows an attacker w
Memory exhaustion in Nmap's db2-das-info NSE script lets a malicious or spoofed DB2 Administration Server on a scanned h
Memory exhaustion in the Nmap Scripting Engine's rpc.lua library (Nmap before 7.992) lets a malicious ONC-RPC service on
Memory exhaustion in Nmap's NSE scripting engine (versions before 7.992) lets a hostile DRDA service consume unbounded m
A malformed RDP handshake response can hang the Nmap scanner process at 100% CPU indefinitely, because the rdp.lua NSE l
Nmap releases before 7.992 can be driven into a permanent 100% CPU hang while running the NSE script tn3270-screen.nse (
Memory exhaustion and quadratic CPU consumption in Nmap before 7.992 can be induced through the NSE dns.lua library when
EUVD-2026-135607
GHSA-2v7r-rwhx-jrxc
NVD
CVE.org
EPSS
Exploit-DB