Skip to main content

Nmap CVE-2026-81411

| EUVDEUVD-2026-135606 HIGH
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-11-25 VulnCheck GHSA-hp47-6m7v-h6wg
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Operator scans attacker-controlled host with -sC/-A
  2. Exploit
    Malicious RDP server returns zero-length GCC block in ConfCreateResponse
  3. Execution
    rdp.lua parser fails to advance read position, loops forever
  4. Impact
    Nmap process hangs at 100% CPU, uninterrupted by script-timeout

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the Nmap operator actively scan an attacker-controlled host with the default/intrusive script set enabled (-sC or -A, or an explicit run of rdp-enum-encryption.nse), and that the host expose a malicious RDP service returning a ConfCreateResponse whose GCC block parser input contains a single malformed zero-length block. Limiting factors: it is triggered only against attacker-controlled targets the operator chooses to scan (CVSS UI:P), it requires the RDP enumeration script to run (default in -sC/-A but skippable), impact is confined to availability of the Nmap process itself (no host compromise), and only Nmap versions before 7.992 are affected.

Impact

The input rates this CVSS 4.0 7.1 (High), but the signal mix points to a moderate, not urgent, real-world priority. The impact is availability-only (VA:H; VC/VI:N) - a denial-of-service that hangs the Nmap process, with no code execution, data exposure, or compromise of the scanned host. Critically, the attack model is inverted: the victim is the operator's Nmap scanner, not a server, so an attacker cannot push this at targets - they must stand up a malicious RDP service and wait for (or lure) a scan, which is why CVSS carries UI:P. There is no KEV listing and no EPSS score in the input, and the vuln.today decision label is 'this_week' (not act_now/emergency), all consistent with a flaw that is real but not under active mass exploitation. No public exploit was identified in the provided data; the only code artifacts are the vendor patch commits. Net: a legitimate reliability/availability bug worth patching on the vendor's 'this_week' cadence, not a drop-everything emergency - the main operational risk is disruption of scanning/recon workflows (including automated or scheduled scans) rather than endpoint compromise.

Exploit ScenarioDerived

An attacker stands up a malicious RDP service on a host they control that returns an otherwise-valid handshake containing a single malformed zero-length GCC block in its ConfCreateResponse. When a security analyst scans that host with default scripts (nmap -sC or -A, which run rdp-enum-encryption.nse), the rdp.lua ConfCreateResponse parser fails to advance the read position and enters an infinite loop, hanging the Nmap process at 100% CPU in a way the script-timeout option does not interrupt. No public exploit was identified at time of analysis; only vendor patch commits are available.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

A malformed RDP handshake response can hang the Nmap scanner process at 100% CPU indefinitely, because the rdp.lua NSE library's ConfCreateResponse GCC block parser in Nmap builds before 7.992 never verifies that each block advances the read position by at least one byte. The affected code path is reached by rdp-enum-encryption.nse, which is part of the default script category, so operators running -sC or -A (or explicitly invoking that script) against a malicious RDP service return a zero-length GCC block will see the scan permanently stall - and the documented --script-timeout safeguard does not fire, because NSE's Lua execution lacked an instruction-count hook capable of interrupting a tight loop. Impact is confined to availability of the local Nmap process (CVSS 4.0 7.1, VA:H, UI:P); no public exploit code has been identified at time of analysis and there is no CISA KEV listing, and the practical risk is bounded by the fact that exploitation requires the operator to deliberately scan an attacker-controlled host. The issue is fixed in 7.992 by both a parser correction and the introduction of a Lua count hook with a five-second per-thread time limit.

RemediationAI

Vendor-released patch: Nmap 7.992. Upgrade to 7.992 or later from https://nmap.org/download or your distribution's package repository, and verify the installed version with 'nmap --version'. Because the fix also introduces a five-second per-script-thread Lua instruction-count hook in nse_main.cc, any locally modified or third-party copy of rdp.lua must be replaced with the 7.992 version or it will retain the parser defect independently of the binary upgrade. Until upgrading is possible, the only reliable control is to stop the vulnerable script from running against untrusted targets: drop -sC/-A and specify an explicit script set that omits rdp-enum-encryption (e.g. --script with a curated list, or --script='not rdp-enum-encryption'), accepting the loss of RDP encryption-enumeration coverage in scan results; note that --script-timeout is explicitly ineffective against this loop, so a defensive operator may instead wrap scans in an external process supervisor or the 'timeout' command to bound total runtime, at the cost of truncated scan output. Scanning untrusted or third-party RDP endpoints with the default script set should be avoided until the upgrade is applied. References: https://github.com/nmap/nmap/blob/v7.992/CHANGELOG, https://nmap.org/changelog.html, https://www.vulncheck.com/advisories/nmap-7.992-infinite-loop-via-zero-length-gcc-block-in-rdp-lua.

Affected VersionsENISA

nmap 0 <7.992

Affected Packages

euvd nmap fix: 7.992

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Nmap Scripting Engine (NSE) scripts are Lua programs executed inside the nmap binary; rdp.lua implements the client side of the RDP connection sequence, including the MCS/Generic Conference Control (GCC) layer that carries the conference create response during connection finalization. The vulnerable routine parses the sequence of GCC blocks in that response and continues reading while blocks remain, but - per CWE-835 (Loop with Unreachable Exit Condition) - it does not assert that each iteration advances the read cursor. A block declaring zero length therefore yields a loop that consumes no input while never satisfying its termination condition, pinning one core at 100% CPU. The hang proved unkillable via the normal script timeout mechanism because NSE's Lua VM was not instrumented with a debug hook, so a pure-Lua infinite loop never returned control to the C code that enforces deadlines. The upstream fix commits address this in two places: nse_main.cc registers a TimerState in the Lua registry, installs an lua_sethook with LUA_MASKCOUNT firing every 10,000 VM instructions and raises a Lua error when a five-second allowance is exceeded, while nse_main.lua calls cnse.install_thread_timer()/cnse.start_thread_timer() around script threads; the parallel commit to the rdp.lua parser presumably makes the block-advance check explicit. The CPE cpe:2.3:a:nmap:nmap with an unbounded version range confirms the flaw applies across the entire Nmap release history prior to 7.992 rather than to a specific platform build.

Know when Nmap gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

AV:N because Nmap connects over the network to the malicious RDP server; UI:R since an operator must initiate the scan; PR:N; impact is a process hang only, so A:H with C:N/I:N.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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).

Executive ViewAI

Why It Matters

CVE-2026-81411 affects Nmap versions before 7.992, where scanning a malicious RDP service can cause the Nmap process to hang indefinitely at 100% CPU, disrupting security scanning operations. This availability issue could delay vulnerability assessments and incident response activities, but requires an operator to target a malicious RDP endpoint. Leadership should ensure timely patching to maintain reliable network scanning capabilities.

Business Impact: Medium
Compensating Controls

Apply vendor patch (upgrade to Nmap 7.992 or later). If immediate patching is not possible, avoid using the default script category (-sC or -A) or the rdp-enum-encryption script against untrusted RDP services, and monitor scanning processes for hangs.

Threat Intelligence Overview

EPSS Score
0.3%
Top 85% exploitable
Prevalence
High
near-universal network scanner for security teams, though a client tool not a production server
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Nmap

View all
CVE-2013-4885 MEDIUM POC
6.8 Oct 26

The http-domino-enum-passwords.nse script in NMap before 6.40, when domino-enum-passwords.idpath is set, allows remote s

CVE-2019-11490 HIGH POC
7.8 Apr 24

An issue was discovered in Npcap 0.992. Rated high severity (CVSS 7.8), this vulnerability is low attack complexity. Pub

CVE-2018-15173 HIGH POC
7.5 Aug 08

Nmap through 7.70, when the -sV option is used, allows remote attackers to cause a denial of service (stack consumption

CVE-2026-58058 MEDIUM POC
6.9 Jun 28

Out-of-bounds reads and a process crash in Nmap through 7.99 can be triggered remotely by any host that is being scanned

CVE-2026-137978 HIGH
7.7 Nov 27

A use-after-free in Nmap's parallel DNS resolver (DNS::ResolverImpl::process_request in libnetutil/massdns.cc) affects N

CVE-2026-137977 HIGH
7.7 Nov 27

Use-after-free in Nmap's parallel DNS resolver (libnetutil/massdns.cc) in all versions before 7.992 allows an attacker w

CVE-2026-81406 HIGH
7.1 Nov 25

Memory exhaustion in Nmap's db2-das-info NSE script lets a malicious or spoofed DB2 Administration Server on a scanned h

CVE-2026-81405 HIGH
7.1 Nov 25

Memory exhaustion in the Nmap Scripting Engine's rpc.lua library (Nmap before 7.992) lets a malicious ONC-RPC service on

CVE-2026-81408 HIGH
7.1 Nov 25

Memory exhaustion in Nmap's NSE scripting engine (versions before 7.992) lets a hostile DRDA service consume unbounded m

CVE-2026-81412 HIGH
7.1 Nov 25

Memory exhaustion and prolonged CPU spin in Nmap's NSE MSRPC library (nselib/msrpctypes.lua) affects Nmap releases befor

CVE-2026-81415 MEDIUM
6.0 Nov 25

Nmap releases before 7.992 can be driven into a permanent 100% CPU hang while running the NSE script tn3270-screen.nse (

CVE-2026-81414 MEDIUM
6.0 Nov 25

Memory exhaustion and quadratic CPU consumption in Nmap before 7.992 can be induced through the NSE dns.lua library when

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy