Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOperator launches Nmap -sV version scan
-
DeliveryScript connects to attacker-controlled DB2 DAS
-
ExploitServer returns oversized 32-bit length (~4.29GB)
-
ExecutionScript buffers declared length
-
ImpactNmap process exhausts memory and dies
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 that the operator actively run Nmap with service/version detection (-sV) against a host the attacker controls, and that the vulnerable db2-das-info.nse script execute against a (real or spoofed) DB2 Administration Server on that host. The attacker must control the scanned endpoint's responses to supply the oversized unmasked 32-bit packet length. Limiting factors: this is not triggered by passively running a service - it needs operator-initiated scanning with version detection enabled (UI:P), the attacker must own or impersonate the scanned DB2 DAS service, and impact is confined to availability of the Nmap process (crash/memory exhaustion), with no code execution, data exposure, or impact to the scanned host. There is no condition under which an external party can trigger this without the operator first choosing to scan them. |
| Impact | This is a moderate, availability-only issue whose signals are internally consistent rather than conflicting. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VA:H, VC/VI:N) correctly captures that the only impact is memory exhaustion (denial of service) of the Nmap process itself - there is no confidentiality or integrity consequence - and that the attack is triggered only when a human operator initiates a version-detection scan (UI:P / passive user interaction). Critically, the threat model is inverted from a typical server CVE: the 'attacker' is a malicious or attacker-controlled scanned host running a rogue DB2 Administration Server, and the 'victim' is the Nmap client doing the scanning. The vuln.today priority is this_week and the fix is vendor-confirmed, but there is no CISA KEV listing and no EPSS score supplied, so there is no evidence of active exploitation or high exploitation probability. No public exploit is identified in the input (the only GitHub links are patch commits, not PoC code). Net: a legitimate but not emergency-grade bug - a self-inflicted DoS risk for scanning infrastructure, not a remotely-triggerable compromise of exposed services. Prioritize patching Nmap on scanning hosts within the normal cycle; it is not a high-CVSS-but-trivial issue, but neither does it warrant emergency response. |
| Exploit ScenarioDerived | A defender or red-teamer runs 'nmap -sV' against a host controlled by an attacker, which exposes a rogue DB2 Administration Server (DAS). When the db2-das-info.nse script negotiates, the malicious server declares a packet length of up to ~4.29GB in an unmasked 32-bit length field; Nmap trusts it and attempts to buffer that much data, exhausting memory and crashing or hanging the Nmap process. No public exploit code is identified in the provided data, though the trivial trigger (a crafted length field from a server the attacker already controls) makes weaponization low-effort. |
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 db2-das-info NSE script lets a malicious or spoofed DB2 Administration Server on a scanned host declare a packet length of up to roughly 4.29GB, causing Nmap to buffer that data and run out of memory during version detection. Only operators who actively run Nmap with -sV against a host the attacker controls are exposed, and impact is confined to availability of the scanning process - no code execution, data exposure, or effect on the scanned host. The issue is fixed in Nmap 7.992 via two upstream commits that cap the declared packet length; no public exploit code was identified at time of analysis and the flaw has not been confirmed actively exploited (CISA KEV).
RemediationAI
Upgrade to Nmap 7.992, which contains the bounded-length and buffering fixes in db2-das-info.nse; the release is documented in the Nmap changelog (https://nmap.org/changelog.html) and the fixes can be reviewed at https://github.com/nmap/nmap/commit/c6ae85544d97b10897937da3c78adb95107b01bd and https://github.com/nmap/nmap/commit/9de32e381e5fde01e18f1a62b04b3c44ded59c24, with context in the VulnCheck advisory (https://www.vulncheck.com/advisories/nmap-7.992-memory-exhaustion-via-unbounded-db2-das-packet-length-in-db2-das-info-nse). If upgrading cannot happen immediately, run version detection only against hosts you own or trust, and suppress this script when scanning untrusted or internet-facing targets by excluding it from the script set (for example via --script with an explicit list that omits db2-das-info, or by disabling the script in your NSE script selection), accepting the trade-off that DB2 Administration Server identification will no longer be performed on those scans. Because exploitation requires the operator to scan an attacker-controlled or impersonated DB2 DAS endpoint, restricting -sV scans of untrusted hosts to a sandboxed or memory-limited environment also bounds the blast radius of a successful exhaustion attempt.
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 flaw lives in read_db2_packet() in scripts/db2-das-info.nse, a Lua NSE script that speaks the DB2 Administration Server wire protocol and runs as part of service/version detection (-sV). The packet header carries a 32-bit data-length field that the script trusted without masking or bounding; a hostile server could set it to a value approaching 2^32, and the script would loop on socket:receive_bytes() appending into a Lua string buffer until that much data was assembled, exhausting the Nmap process's memory. This is CWE-770 (Allocation of Resources Without Limits or Throttling): an unvalidated length field from an untrusted peer drives unbounded allocation. The upstream fix clamps header.data_len to 158 + 0xffff - the maximum meaningful value given that parse_db2_packet reads a 2-byte-length-prefixed field at offset 158 - and replaces repeated string concatenation with a table of chunks joined via table.concat, so both the allocation ceiling and the buffering behavior are corrected. The assessed vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H) reflects that the attacker is remote and unauthenticated but the operator must first choose to scan the attacker's endpoint with version detection enabled; there is no path for an external party to trigger this without that operator action.
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 privileges, but the operator must initiate the -sV scan (UI:R); only the Nmap process's availability is affected, so C:N/I:N/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Nmap before 7.992 contains an uncontrolled resource consumption vulnerability in the read_db2_packet function of the db2-das-info.nse script, which trusts an unmasked 32-bit length field supplied by the server. A malicious DB2 Administration Server on a scanned host can declare a packet length of up to roughly 4.29GB, causing the script to buffer that much data and the Nmap process to exhaust memory; the script runs during version detection (-sV).
Executive ViewAI
CVE-2026-81406 is a memory exhaustion vulnerability in Nmap's db2-das-info script, fixed in version 7.992. It only affects security staff who run Nmap with version detection against untrusted hosts, causing the scanning process to crash. Leadership should ensure timely patching to maintain reliable vulnerability assessment capabilities.
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 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
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-135600
GHSA-pr87-w9vq-95jc
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB