Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeploy malicious DRDA service on scanned host
-
ExploitOperator runs Nmap -sV reaching the host
-
Executiondrda.lua loops parsing parameter list unbounded
-
ImpactNmap memory exhausted, all batch NSE results discarded
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
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 that the Nmap operator run version detection (-sV, which invokes NSE service probes that reach drda.lua) against a host the attacker controls, and that the host run a DRDA service returning a malicious response - the operator must actively initiate the scan (UI:P), so this cannot be triggered against a passive/idle Nmap install. It is further limited to 64-bit Nmap builds before 7.992 and to the scan batch that includes the malicious host; the impact is a crash/stall of the Nmap process and loss of NSE results for other hosts in that batch, not compromise of any scanned system. No authentication is required of the attacker (PR:N), but the hard dependency on an operator-initiated -sV scan against an attacker-chosen target substantially narrows real-world exposure. |
| Impact | This is a denial-of-service (memory-exhaustion) issue with a CVSS 4.0 base score of 7.1, driven entirely by availability impact (VA:H) with no confidentiality or integrity impact (VC:N/VI:N). The vector is AV:N/AC:L/AT:N/PR:N but critically UI:P (passive user interaction) - exploitation is not attacker-initiated against a service; instead the Nmap operator must actively scan an attacker-controlled host with version detection (-sV), at which point the malicious DRDA service triggers the unbounded loop in drda.lua. No KEV listing and no EPSS score are present in the input, and no confirmed public exploit is supplied (the VulnCheck advisory is a reference, not verified working exploit code), so there is no evidence of active or widespread exploitation. The vuln.today decision label is 'this_week' rather than act_now/emergency, consistent with a patch-available, non-wormable, operator-dependent availability bug. Net assessment: this is a real but bounded-urgency issue - it degrades the security tooling of the scanner operator rather than a production server, and real-world risk is gated by the operator choosing to run -sV against a hostile target on a 64-bit build. Note the reversed victim model: the 'attacker' is the scanned host and the victim is the Nmap process itself, which the CVSS network vector does not make obvious. |
| Exploit ScenarioDerived | An attacker stands up a host that answers service probes with a crafted malicious DRDA response. When a defender or operator runs an Nmap version-detection scan (-sV) that reaches this host on a 64-bit build of Nmap before 7.992, the drda.lua parameter-list parser loops without a reachable exit, allocating memory without bound until the Nmap process is exhausted and silently discards NSE results for every other host in the same scan batch. No public exploit is identified in the provided data, though the trigger is well described in the vendor advisory and patch. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Memory exhaustion in Nmap's NSE scripting engine (versions before 7.992) lets a hostile DRDA service consume unbounded memory inside the Nmap process during a version-detection scan. The drda.lua library's parameter-list parser contains a loop whose exit condition cannot be reached, so each malicious DRDA response keeps growing the list; on 64-bit builds the process runs out of memory, and NSE results for every other host in the same scan batch are silently discarded with no error reported. The flaw only manifests when the operator initiates a scan with -sV against an attacker-controlled host (UI:P, unauthenticated from the attacker's side), and it affects only the scanning workstation, not any scanned system; CVSS 4.0 scores it 7.1 with availability impact only (VA:H, VC:N/VI:N). No public exploit code was identified at time of analysis, no CISA KEV listing applies, and the vendor has released a fix in Nmap 7.992; the project's own guidance places remediation in the current week rather than as an emergency.
RemediationAI
Vendor-released patch: upgrade to Nmap 7.992, which contains both the drda.lua loop fix and a new per-state Lua allocator cap of 400 MiB in nse_main.cc that raises LUA_ERRMEM instead of letting NSE grow until the process dies; see https://nmap.org/changelog.html and the commits https://github.com/nmap/nmap/commit/9de32e381e5fde01e18f1a62b04b3c44ded59c24 and https://github.com/nmap/nmap/commit/bfd3446259426c1207086b3cad1bcf75e30ee304. Because exploitation requires the operator to run -sV against a host that returns a malicious DRDA response, the effective interim control is to avoid version detection against untrusted or attacker-controlled hosts until scanners are patched - the trade-off is loss of service/version fingerprinting and of any NSE scripts that depend on -sV results for those targets - and to treat NSE output from such scans as unreliable, since the failure mode discards results for the whole batch without erroring. Where the upgraded build is in place, running with -d or higher surfaces the peak memory allocated to the NSE state, which is useful for confirming the cap is holding; note that the allocator ceiling bounds memory growth but does not by itself restore NSE results lost during an affected scan, so a batch that stalls should be re-run after patching. Remediation is prioritized for this week rather than as an emergency, reflecting the operator-initiated trigger and availability-only impact.
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 issue is CWE-835, a loop with an unreachable exit condition, located in the NSE (Nmap Scripting Engine) library drda.lua that parses DRDA (Distributed Relational Database Architecture) protocol responses - the IBM protocol family used by DB2 and related database servers. The library is reached not by a dedicated script flag but by Nmap's service probes during version detection (-sV), which means ordinary fingerprinting of a listening DRDA port is enough to exercise it. Because the parameter list is appended to on each iteration while the termination condition can never be satisfied, the accumulated data grows without bound; on 64-bit builds the address space permits growth until the Nmap process itself is exhausted, and the failure is silent with respect to NSE output for other targets in the same batch. The upstream remediation in nse_main.cc does not only patch the loop: it replaces luaL_newstate with lua_newstate driven by a restricted_alloc reallocator that tracks total_allocated/max_allocated against a 400 MiB memory_limit (commented peaks in the project's own testing ranged from roughly 6 MB for make check-nse to about 95 MB for http-title across 822 targets), returning NULL to raise LUA_ERRMEM in the Lua VM when the ceiling is crossed, and at -d or higher logging the peak allocation before freeing the state. This bounds the blast radius of this and any future runaway-script condition in NSE rather than relying solely on the parser fix. The vulnerability is scoped to 64-bit builds; the hard prerequisite remains an operator-initiated -sV scan against an attacker-chosen target, so it cannot be triggered against an idle or passive Nmap installation, and no confidentiality or integrity impact is involved.
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-controlled scanned host (AV:N, PR:N) but the operator must initiate the -sV scan (UI:R); only the Nmap process availability is affected (C:N/I:N/A:H, S:U).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Nmap before 7.992 contains a loop with an unreachable exit condition in the parameter-list parsing of the NSE drda.lua library, which keeps growing its parameter list while processing a malicious DRDA response. A malicious DRDA service on a scanned host can make the loop consume memory without bound on 64-bit builds, exhausting the Nmap process and discarding NSE results for every other host in the same scan batch without reporting an error; the library is reached by service probes during version detection (-sV).
Executive ViewAI
A high-severity availability flaw in Nmap's scripting engine (CVE-2026-81408) allows a hostile DRDA service to exhaust memory on the scanning workstation during version-detection scans, silently discarding results for every other host in the same batch. Leadership should care because security assessments performed by the team can produce incomplete or misleading findings - a false sense of coverage - and disrupt scan operations, affecting the security team's ability to reliably assess the environment.
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 the Nmap Scripting Engine's rpc.lua library (Nmap before 7.992) lets a malicious ONC-RPC service on
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-135602
GHSA-67cq-rxj3-7jmx
NVD
CVE.org
EPSS
Exploit-DB