Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker hosts malicious ONC-RPC service
-
ExploitOperator scans host with -sV or NFS/rusers scripts
-
Executionrpc.lua buffers server-declared 2.1GB fragments unbounded
-
ImpactNmap process exhausts memory and crashes
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to control an RPC service on a host and requires the Nmap operator to actively scan that host via a code path reaching Comm.ReceivePacket in rpc.lua - specifically version detection (-sV, which runs rpcinfo.nse) or the NFS, rusers, or NetWorker NSE scripts. The attacker cannot trigger the condition remotely on their own; the operator must initiate the scan (UI:P), which is the primary limiting factor. Impact is confined to availability of the Nmap scanning process (memory exhaustion/crash) with no confidentiality or integrity impact and no code execution. Affected: Nmap before 7.992 (fixed in 7.992). |
| Impact | This is a denial-of-service-only flaw (CWE-770, uncontrolled resource consumption) with an unusual role reversal: the victim is the Nmap operator, not a scanned server. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H) correctly limits impact to availability (VA:H) with no confidentiality or integrity effect, and critically uses UI:P - exploitation requires the operator to actively scan a host the attacker controls. No EPSS score, KEV listing, or PoC reference was supplied, so there is no public exploit identified at time of analysis and no evidence of active exploitation. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a patchable, non-RCE, operator-triggered DoS. Net assessment: a real but bounded issue - base score 7.1 overstates urgency for most environments because the attacker cannot reach the code path unless the target chooses to scan them with -sV or the NFS/rusers/NetWorker scripts; it matters most for automated/mass scanning pipelines where a single hostile host could crash scan jobs. No signals conflict; the main caveat is that no EPSS/KEV/PoC data was provided to gauge exploitation likelihood in the wild. |
| Exploit ScenarioDerived | An attacker stands up a malicious ONC-RPC service that, when queried, declares record fragments of up to ~2.1GB (and up to 400 fragments per call). When an operator runs Nmap version detection (-sV, which invokes rpcinfo.nse) or the NFS/rusers/NetWorker NSE scripts against that host, Comm.ReceivePacket buffers the attacker-declared length without bound and the Nmap process exhausts memory and dies. No public exploit was identified in the provided data; the source diff confirms the unbounded-read root cause. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Memory exhaustion in the Nmap Scripting Engine's rpc.lua library (Nmap before 7.992) lets a malicious ONC-RPC service on a scanned host crash the scanning process by declaring record fragments of up to roughly 2.1 GB across as many as 400 fragments per call. The flaw is in Comm.ReceivePacket, which buffers server-declared fragment lengths without an upper bound and is reachable through rpcinfo.nse during version detection (-sV) and through the NFS, rusers and NetWorker NSE scripts. Impact is confined to availability of the scanner with no confidentiality, integrity or code-execution impact, and exploitation requires the operator to actively scan the attacker's host (unauthenticated from the attacker's side, PR:N, but UI:P); no public exploit code has been identified at time of analysis, and the vendor-released patch is Nmap 7.992.
RemediationAI
Upgrade to Nmap 7.992 or later, the vendor-released patch; the fix is in upstream commits f0e4ac576afacccfff5c669c196b2109315e1ca5 and 9de32e381e5fde01e18f1a62b04b3c44ded59c24, which bound the fragment read in nselib/rpc.lua and return a short-read error instead of buffering an attacker-declared length. No separate vendor workaround is documented in the available references, and hardening the scanned host does nothing because the memory is consumed on the scanner side. If upgrading cannot be done immediately, the exposure described by the advisory can be removed by not running version detection (-sV) or the NFS, rusers and NetWorker NSE scripts against hosts you do not control, at the cost of losing service/version fingerprinting and those script results precisely where they are most useful; alternatively, run such scans inside a memory-capped container or under a ulimit -v ceiling so exhaustion terminates only the scan process instead of destabilising the operator's machine, accepting that the affected scans will fail instead of completing.
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
The NSE rpc.lua library implements the ONC-RPC (Sun RPC) client handling that Nmap scripts use to talk to rpcbind/portmapper and related services. ONC-RPC record marking (RFC 5531) prefixes every record fragment with a 4-byte header whose low 31 bits carry the fragment length, so a single declared fragment can legitimately be up to about 2.1 GB. Comm.ReceivePacket consumed that server-supplied length directly and buffered the corresponding data with no cap, looping over up to 400 fragments per call. The root cause class is CWE-770 (uncontrolled resource consumption): an attacker-controlled length field drives buffering on the client, so a hostile RPC endpoint simply advertises oversized fragments and feeds or stalls data until the Nmap process and the machine it runs on run out of memory. The upstream commits replace the hand-rolled receive loop with a bounded socket:receive_bytes(toread) call that verifies the full fragment arrived and returns a short-read error rather than growing an unbounded string. The CPE cpe:2.3:a:nmap:nmap:*:*:*:*:*:*:*:* covers all builds prior to 7.992; because the vulnerable code is client-side, any scan mode or script that parses RPC replies (version detection via rpcinfo.nse, plus the NFS, rusers and NetWorker scripts) is exposed.
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
Attacker's RPC service is reachable over the network (AV:N) with no auth (PR:N), but the operator must run the scan (UI:R); only the Nmap process availability is impacted (A:H, C:N/I:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Nmap before 7.992 contains an uncontrolled resource consumption vulnerability in the Comm.ReceivePacket function of the NSE rpc.lua library, which buffers ONC-RPC record fragments using the server-declared fragment length without an upper bound. A malicious RPC service on a scanned host can declare fragments of up to roughly 2.1GB, and up to 400 fragments per call, causing the Nmap process to exhaust memory; the read path is reached by rpcinfo.nse during version detection (-sV) and is shared by the NFS, rusers and NetWorker scripts.
Executive ViewAI
CVE-2026-81405 is a high-severity memory exhaustion flaw in Nmap's scripting engine (rpc.lua) that can crash the scanner when it performs version detection or runs certain NSE scripts against a malicious host. This affects security teams and network operations staff who rely on Nmap for discovery and assessment, potentially disrupting scheduled scans and incident response activities. Leadership should prioritize patching to avoid operational delays and maintain visibility across the network.
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
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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 Nmap's NSE scripting engine (versions before 7.992) lets a hostile DRDA service consume unbounded m
Memory exhaustion and prolonged CPU spin in Nmap's NSE MSRPC library (nselib/msrpctypes.lua) affects Nmap releases befor
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-135599
GHSA-cccq-fxpq-3j3f
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB