CVE-2026-81408: Nmap < 7.992 Unbounded Loop via Malicious DRDA Response in drda.lua
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).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.992
Event History
Frequently Asked Questions
Who is exposed to this issue?
Operators running Nmap versions before 7.992 are exposed when they perform version detection against a host operating a malicious DRDA service. The affected parsing library is reached during -sV service probes.
What must an attacker do to trigger the problem?
An attacker needs to operate or control a scanned DRDA service and return a malicious DRDA response during the scan. No authentication is required, but the vulnerable Nmap instance must scan that service with version detection enabled.
What is the operational impact during a scan?
On 64-bit builds, the Nmap process can consume memory without bound until it is exhausted. NSE results for every other host in the same scan batch can be discarded, and Nmap may not report an error.
How can I tell whether a scan may have been affected?
Look for Nmap scans using -sV that experienced unexplained memory growth or exhaustion and missing NSE results for other hosts in the same batch. The failure may occur without an error message.
What should be done if patching is not immediately possible?
Avoid using -sV against untrusted or potentially hostile DRDA services until Nmap can be updated. Upgrade to version 7.992 or later when possible.