CVE-2026-81413: Nmap < 7.992 Memory Exhaustion via Uncapped AXFR Read in dns-zone-transfer.nse
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.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users running Nmap versions earlier than 7.992 are exposed when they scan a host whose DNS service on TCP port 53 is controlled by a malicious server and the dns-zone-transfer.nse script performs an AXFR request.
What does an attacker need to do to trigger the memory exhaustion?
The attacker needs to operate or control the DNS server on the scanned host and respond to the AXFR request by continuously streaming data over TCP. No credentials are required, but a user must initiate the scan and the script interaction.
What is the impact on the scanning system?
The Nmap process can consume memory at the rate the malicious server sends data until available memory is exhausted. The supplied data identifies availability impact only; it does not indicate confidentiality or integrity impact.
How can this be mitigated if upgrading is not immediately possible?
Avoid running the dns-zone-transfer.nse script against untrusted DNS services, particularly hosts that may expose TCP port 53 under an attacker’s control. Upgrading to Nmap 7.992 or later addresses the affected version range.