Skip to main content

Nmap CVE-2026-81412

| EUVDEUVD-2026-135607 HIGH
Memory Allocation with Excessive Size Value (CWE-789)
2026-11-25 VulnCheck GHSA-2v7r-rwhx-jrxc
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Host malicious SMB server on target
  2. Delivery
    Lure Nmap default-script scan (-sC/-A)
  3. Exploit
    smb-enum-shares parses MSRPC reply
  4. Execution
    Declare EntriesRead 0xFFFFFFFF with empty buffer
  5. Persist
    unmarshall_array spins and allocates unbounded
  6. Impact
    Exhaust 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

nmap 0 <7.992

Affected Packages

euvd nmap fix: 7.992

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

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: Low
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
High
Nmap is among the most widely used network scanners across security teams
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Low

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Nmap

View all
CVE-2013-4885 MEDIUM POC
6.8 Oct 26

The http-domino-enum-passwords.nse script in NMap before 6.40, when domino-enum-passwords.idpath is set, allows remote s

CVE-2019-11490 HIGH POC
7.8 Apr 24

An issue was discovered in Npcap 0.992. Rated high severity (CVSS 7.8), this vulnerability is low attack complexity. Pub

CVE-2018-15173 HIGH POC
7.5 Aug 08

Nmap through 7.70, when the -sV option is used, allows remote attackers to cause a denial of service (stack consumption

CVE-2026-58058 MEDIUM POC
6.9 Jun 28

Out-of-bounds reads and a process crash in Nmap through 7.99 can be triggered remotely by any host that is being scanned

CVE-2026-137978 HIGH
7.7 Nov 27

A use-after-free in Nmap's parallel DNS resolver (DNS::ResolverImpl::process_request in libnetutil/massdns.cc) affects N

CVE-2026-137977 HIGH
7.7 Nov 27

Use-after-free in Nmap's parallel DNS resolver (libnetutil/massdns.cc) in all versions before 7.992 allows an attacker w

CVE-2026-81406 HIGH
7.1 Nov 25

Memory exhaustion in Nmap's db2-das-info NSE script lets a malicious or spoofed DB2 Administration Server on a scanned h

CVE-2026-81405 HIGH
7.1 Nov 25

Memory exhaustion in the Nmap Scripting Engine's rpc.lua library (Nmap before 7.992) lets a malicious ONC-RPC service on

CVE-2026-81408 HIGH
7.1 Nov 25

Memory exhaustion in Nmap's NSE scripting engine (versions before 7.992) lets a hostile DRDA service consume unbounded m

CVE-2026-81411 HIGH
7.1 Nov 25

A malformed RDP handshake response can hang the Nmap scanner process at 100% CPU indefinitely, because the rdp.lua NSE l

CVE-2026-81415 MEDIUM
6.0 Nov 25

Nmap releases before 7.992 can be driven into a permanent 100% CPU hang while running the NSE script tn3270-screen.nse (

CVE-2026-81414 MEDIUM
6.0 Nov 25

Memory exhaustion and quadratic CPU consumption in Nmap before 7.992 can be induced through the NSE dns.lua library when

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy