Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOperator scans attacker-controlled host with snmp-ios-config.nse
-
DeliverySNMP write sequence reaches malicious TFTP exchange
-
Exploittftp.lua coroutine ends in error, left unreaped
-
ExecutionDispatcher spins in zero-yield infinite loop
-
ImpactEntire 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
The http-domino-enum-passwords.nse script in NMap before 6.40, when domino-enum-passwords.idpath is set, allows remote s
An issue was discovered in Npcap 0.992. Rated high severity (CVSS 7.8), this vulnerability is low attack complexity. Pub
Nmap through 7.70, when the -sV option is used, allows remote attackers to cause a denial of service (stack consumption
Out-of-bounds reads and a process crash in Nmap through 7.99 can be triggered remotely by any host that is being scanned
A use-after-free in Nmap's parallel DNS resolver (DNS::ResolverImpl::process_request in libnetutil/massdns.cc) affects N
Use-after-free in Nmap's parallel DNS resolver (libnetutil/massdns.cc) in all versions before 7.992 allows an attacker w
Memory exhaustion in Nmap's db2-das-info NSE script lets a malicious or spoofed DB2 Administration Server on a scanned h
Memory exhaustion in the Nmap Scripting Engine's rpc.lua library (Nmap before 7.992) lets a malicious ONC-RPC service on
Memory exhaustion in Nmap's NSE scripting engine (versions before 7.992) lets a hostile DRDA service consume unbounded m
Memory exhaustion and prolonged CPU spin in Nmap's NSE MSRPC library (nselib/msrpctypes.lua) affects Nmap releases befor
A malformed RDP handshake response can hang the Nmap scanner process at 100% CPU indefinitely, because the rdp.lua NSE l
Nmap releases before 7.992 can be driven into a permanent 100% CPU hang while running the NSE script tn3270-screen.nse (
EUVD-2026-135612
GHSA-8x2c-859c-hx7c
NVD
CVE.org
EPSS
Exploit-DB