Nmap < 7.992 Infinite Loop via Zero-Length GCC Block in rdp.lua
- State
- Published
- Severity
- 7.1 High
- Published
- Nov 25, 2026
- Updated
- Nov 27, 2026
- Reserved
- Aug 26, 2026
Description
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).
| Product | Versions |
|---|---|
| Nmap Nmap | before 7.992 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.1 High | VulnCheck | |
| 3.1 | 6.5 Medium | VulnCheck |
Weaknesses
- CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
References
- NSE 5-Second Non-Yielding Thread Kill CommitPatch
- NSE Timer Callback CommitPatch
- Nmap 7.992 ChangelogRelease Notes
- Nmap ChangelogRelease Notes
- VulnCheck Advisory: Nmap < 7.992 Infinite Loop via Zero-Length GCC Block in rdp.luaThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.