CVE-2026-81411: Nmap < 7.992 Infinite Loop via Zero-Length GCC Block in rdp.lua
Nmap before 7.992 contains an infinite loop vulnerability in the ConfCreateResponse GCC block parser of the NSE rdp.lua library, which does not check that each block advances the read position. A malicious RDP server on a scanned host can include a single malformed zero-length block in an otherwise valid handshake, causing a permanent 100% CPU hang of the Nmap process that the script-timeout option does not interrupt; the library is used by rdp-enum-encryption.nse in the default script category (-sC, -A).
Affected Software
Event History
Frequently Asked Questions
When is a scan exposed to this issue?
The issue is exposed when Nmap scans a malicious RDP server using rdp-enum-encryption.nse. That script is in the default script category, so it can run with -sC or -A.
Does an attacker need credentials or prior access to the scanning system?
No. A malicious RDP server on a host being scanned can trigger the condition during an otherwise valid RDP handshake; the vector is network-based and requires user interaction.
Will Nmap's script-timeout setting stop the affected scan?
No. The malformed zero-length GCC block causes a permanent 100% CPU hang in the Nmap process that script-timeout does not interrupt.
What versions are affected?
Nmap versions before 7.992 are affected. Updating to 7.992 or later addresses the vulnerable parser behavior.