CVE-2026-81413 in Nmap
Summary
by MITRE • 11/25/2026
Nmap before 7.992 contains an uncontrolled resource consumption vulnerability in the inline AXFR response reader of the dns-zone-transfer.nse script, which reads the zone transfer response without a size limit. A malicious DNS server on a scanned host can stream unbounded data over TCP port 53 after the AXFR request, causing the memory of the Nmap process to grow at the attacker's send rate until it is exhausted.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified in versions of Nmap prior to release 7.992 represents a critical uncontrolled resource consumption flaw within the dns-zone-transfer.nse script engine, specifically affecting the inline Asynchronous Zone Transfer AXFR response reader. This security defect arises from the absence of strict size limitations or byte-count thresholds when processing incoming DNS zone transfer responses over TCP port 53. In standard network reconnaissance operations, Nmap utilizes this script to query target hosts for domain name system zone data, a process that inherently involves receiving potentially large datasets containing all records associated with a specific domain. The core technical failure lies in the parser logic which accepts and accumulates incoming packets from the DNS server without validating whether the total volume of received data exceeds reasonable operational bounds or predefined memory allocation limits.
From an operational perspective, this flaw allows for a severe denial-of-service condition against the scanning host itself rather than the target being scanned. A malicious actor controlling a compromised or rogue DNS server can exploit this behavior by initiating an AXFR request and subsequently streaming unbounded amounts of data back to the Nmap process. Because the scanner does not enforce a maximum payload size, it continues to allocate memory for each incoming packet until system resources are completely exhausted. This results in the rapid depletion of available RAM on the machine executing the scan, potentially causing the Nmap application to crash or hang and impacting other processes running concurrently on the host. The attack vector is particularly insidious because it leverages a legitimate administrative tool against its operator, turning a trusted utility into an instrument for resource exhaustion attacks initiated by external network entities.
This vulnerability aligns with Common Weakness Enumeration CWE-400 which describes uncontrolled resource consumption where software does not properly control the allocation and maintenance of limited system resources leading to denial-of-service conditions. Furthermore, in the context of adversary tactics, this scenario reflects aspects of ATT&CK technique T1498 Network Denial of Service specifically within the sub-category of Resource Exhaustion Attacks. The exploitation relies on the attacker sending a high volume of data packets that trigger excessive memory allocation in the victim application, thereby degrading system performance or causing complete service failure. It highlights the risks associated with network scanning tools that interact dynamically with external services without implementing robust input validation and resource gating mechanisms for incoming streams.
To mitigate this vulnerability, organizations must immediately upgrade Nmap to version 7.992 or any later release where the dns-zone-transfer.nse script has been patched to include strict size limits on AXFR responses. Until such an update is applied, administrators should exercise extreme caution when running zone transfer scripts against untrusted networks or hosts that may be compromised by malicious DNS infrastructure. It is advisable to disable this specific NSE script in automated scanning profiles unless absolutely necessary for authorized security assessments and even then only under controlled conditions with adequate system monitoring enabled to detect abnormal memory usage spikes during the scan execution window.