Skip to main content

Nmap EUVDEUVD-2026-135612

| CVE-2026-81417 MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-11-25 VulnCheck GHSA-8x2c-859c-hx7c
6.0
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 snmp-ios-config.nse
  2. Delivery
    SNMP write sequence reaches malicious TFTP exchange
  3. Exploit
    tftp.lua coroutine ends in error, left unreaped
  4. Execution
    Dispatcher spins in zero-yield infinite loop
  5. Impact
    Entire Nmap run freezes before scanning begins

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 the operator to run Nmap (before 7.992) with the snmp-ios-config.nse script against a host the attacker controls, and for that host to drive the SNMP write sequence into a malicious TFTP exchange that leaves a coroutine in an errored state. The hang only occurs in the default case where the script-timeout option is NOT set - setting script-timeout prevents the freeze. Limiting factors: the attacker cannot reach a victim unsolicited (the operator must actively choose to scan the malicious target with this specific script, hence UI:P), only the scanning host's own Nmap process is affected, and upgrading to 7.992 removes the condition entirely.

Impact

This is a medium-severity denial-of-service issue (CVSS 4.0 base 6.0; CWE-835 infinite loop) whose practical risk is low and highly conditional. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P, impact VA:H only) encodes the key limitation: an attack requirement is present (AT:P) and user interaction is required (UI:P), because the 'attacker' is a malicious host and the 'victim' is the operator who chooses to scan it with a specific NSE script. The only impact is availability of the Nmap process itself (VA:H; VC/VI/SC/SI/SA all N) - there is no code execution, data exposure, or impact to other systems, and the freeze is confined to the attacker-triggered scan run (a largely self-inflicted DoS, not a server-side exposure). No EPSS score was provided and the issue is not in CISA KEV; there is no public exploit identified at time of analysis. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a patch-on-normal-cadence posture. A built-in mitigation exists: the hang does not occur when the script-timeout option is set. Net: a real but low-urgency bug - prioritize for routine patching rather than emergency response.

Exploit ScenarioDerived

An attacker operates a host that, after Nmap's SNMP write sequence, returns a malicious TFTP exchange which causes the tftp.lua coroutine to end in an error rather than completing normally. When a defender or auditor runs Nmap (before 7.992) with snmp-ios-config.nse against this host and has not set script-timeout, the errored coroutine is never reaped, the dispatcher enters a zero-yield infinite loop, and the entire Nmap invocation freezes before any target is scanned. No public exploit code was identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 25, 2026

Nmap's NSE TFTP library (nselib/tftp.lua) can leave the entire Nmap process spinning forever when a script such as snmp-ios-config.nse drives an SNMP write sequence into a malicious TFTP exchange that ends in an errored state. All Nmap builds before 7.992 are affected; the dispatcher removes finished coroutines but not failed ones, so the dead coroutine is never reaped and a zero-yield loop blocks the run before port scanning begins for any target. The freeze requires the operator to deliberately scan an attacker-controlled host with the affected script (UI:P), it only harms the local Nmap invocation (availability-only impact), and it is avoided entirely if script-timeout is set; the vendor-released fix is Nmap 7.992, and no public exploit has been identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to Nmap 7.992 or later, which contains commit 54d8aeedd909d338c86261bbb5c32b7c4a3f6e7d fixing both the dispatcher reaping condition and the errored-coroutine termination path in nselib/tftp.lua (see https://nmap.org/changelog.html and https://github.com/nmap/nmap/blob/v7.992/CHANGELOG). If upgrading cannot be done immediately, set the script-timeout option (e.g. --script-timeout) on every scan, since the hang is prevented when a script timeout is configured; the trade-off is that a stuck or slow script will be aborted, and any script that legitimately needs longer than the chosen timeout will be cut short, so pick a value above your normal script durations. Additionally, avoid running snmp-ios-config.nse against hosts you do not control or trust, because the freeze only materialises when that script reaches a malicious TFTP exchange - this reduces exposure but does not fix the library for other scripts using the same dispatcher. Because the flaw only stalls the scanning host's own Nmap process and requires the operator to target the hostile device, no network-level filtering is needed beyond controlling which scripts you fire at untrusted endpoints; the complete fix remains upgrading to 7.992.

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 scripts are Lua programs scheduled as coroutines, and nselib/tftp.lua implements a small cooperative dispatcher that pumps those coroutines with coroutine.resume and drops the ones that have finished. The pre-7.992 code tested only the resume result (if ( not(res) )), so a coroutine that terminated by raising an error - resume returns false plus an error message - was treated as still live and kept in the rotation, while processConnection signalled termination with coroutine.yield(false) rather than returning. The combination leaves a coroutine that can never yield work again, producing an infinite zero-yield spin, which is the classic CWE-835 loop-with-unreachable-exit condition. The upstream commit 54d8aeedd909d338c86261bbb5c32b7c4a3f6e7d changes the dispatcher check to if not status or not res then and replaces the terminal coroutine.yield(false) with return false, so errored and completed coroutines are both reaped. The trigger is a TFTP exchange reached by snmp-ios-config.nse after an SNMP write sequence against a hostile device; the vulnerability class and the fix are confirmed from the diff, while the exact packet-level sequence that forces the errored state is not described in the available sources. Because the spin happens inside the script dispatcher, it stalls the whole Nmap invocation before port scanning of any target in that run, and a configured script-timeout aborts the stuck script before the freeze can persist.

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 6.0 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

The operator must run a specific NSE script and reach an attacker-controlled malicious TFTP exchange (AC:H, UI:R); impact is limited to freezing the Nmap process, so A:H with C:N/I:N and no scope change.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/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
Present
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 dispatcher of the NSE tftp.lua library, which removes completed coroutines but not ones that ended in an error, leaving a zero-yield spin. A malicious TFTP exchange reached by snmp-ios-config.nse after an SNMP write sequence can leave a dead coroutine that freezes the entire Nmap invocation, before port scanning begins for any target in the run; the hang is prevented when the script-timeout option is set.

Threat Intelligence Overview

EPSS Score
0.5%
Top 62% exploitable
Prevalence
High
Nmap is a ubiquitous network scanner across security and IT teams
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
High

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +30
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-81411 HIGH
7.1 Nov 25

A malformed RDP handshake response can hang the Nmap scanner process at 100% CPU indefinitely, because the rdp.lua NSE l

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 (

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