AZL-116191: CVE-2026-81408 affecting package nmap 7.95-6
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
nmapto a version that resolves this vulnerability.Fixed in 7.992
Event History
Frequently Asked Questions
Which scan workflows are exposed?
The vulnerable NSE library is reached by service probes during version detection, so scans using -sV against a malicious DRDA service are exposed. The issue can affect other hosts in the same scan batch because their NSE results may be discarded.
What must an attacker control to trigger the issue?
An attacker needs to operate a malicious DRDA service on a host being scanned. Its crafted response causes the scanner's parameter list to grow without bound, exhausting memory in the Nmap process on 64-bit builds.
What can be done before updating Nmap?
Avoid using version detection (-sV) when scanning hosts that may expose untrusted or attacker-controlled DRDA services. This prevents the service probes that reach the affected library.
How can I identify potentially affected scans?
Nmap versions before 7.992 are affected; the listed package is nmap 7.95-6. Affected scans may exhaust the Nmap process and lose NSE results for other hosts in the same batch without reporting an error.