Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOperator runs tn3270 NSE script against host
-
ExploitTN3270E server returns conformant DEVICETYPE IS without LU suffix
-
ImpactSearch loop never advances, Nmap hangs at 100% CPU
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 Nmap operator to actively run tn3270-screen.nse (or another script invoking the tn3270.lua library) against a target host running a TN3270E server, where that server sends a protocol-conformant DEVICETYPE IS response lacking an LU suffix. This is not a default scan - the tn3270 category script must be explicitly selected - which is the primary limiting factor (reflected as UI:P and AT:P). Notably, no malicious intent is needed: any conformant TN3270E server emitting such a response triggers the permanent hang, and the standard script-timeout mitigation does not interrupt it. Impact is confined to the host running Nmap (process hang at 100% CPU), not to the scanned system. |
| Impact | All signals point to a bounded, medium-severity availability issue rather than a high-priority threat. The input CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P, VA:H, VC:N/VI:N) scores 6.0 and correctly captures that the only impact is availability, and that it requires both an attack precondition (AT:P) and passive user interaction (UI:P). Critically, the 'victim' is the Nmap scanning process itself, not a production service - the attacker role is played by the scanned TN3270E host, and the operator must choose to run the tn3270-screen.nse script for the hang to occur. Exploitation status: no public exploit identified at time of analysis (no KEV, no EPSS provided, no PoC reference beyond the VulnCheck advisory and patch commits). The vuln.today Decision label is 'this_month', consistent with a non-emergency, routine-patch priority. The description notes even a non-malicious server triggers the loop, so this reads more as a robustness/reliability defect than a weaponizable attack. No key signals conflict; the main nuance is that AV:N reflects the network-delivered trigger, while the actual impact is confined to the local host running Nmap - not a remote service outage. Overall: a real bug worth patching in a normal cycle, not a drop-everything emergency. |
| Exploit ScenarioDerived | An operator runs Nmap's tn3270-screen.nse script (or another script using the tn3270 library) against a host exposing a TN3270E server. The server - whether malicious or entirely benign - replies with a protocol-conformant DEVICETYPE IS response that omits an LU suffix, causing the device-type search loop to never advance and hanging the Nmap process at 100% CPU, a state the script-timeout option cannot interrupt. No public exploit code is identified; the trigger requires only that the operator scan such a host with the vulnerable script. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Nmap releases before 7.992 can be driven into a permanent 100% CPU hang while running the NSE script tn3270-screen.nse (or any script using the tn3270.lua library) against a host exposing a TN3270E service. A protocol-conformant 'DEVICETYPE IS' response that omits an LU suffix leaves the device-type negotiation loop in negotiate_tn3270 without an exit condition, so the Nmap process spins indefinitely and the built-in --script-timeout option does not interrupt it. The vector is unauthenticated from the network side but requires the operator to explicitly select the tn3270 script category (UI:R/AT:P), and no malicious server behaviour is needed; no public exploit code has been identified at time of analysis, and impact is limited to availability of the scanning host, not the scanned system. Vendor-released patch: Nmap 7.992.
RemediationAI
Upgrade to Nmap 7.992 or later, which is the vendor-released patch containing both the loop correction in the TN3270 negotiation code and an NSE-level instruction-count watchdog that aborts runaway scripts after about 5 seconds; release notes are at https://github.com/nmap/nmap/blob/v7.992/CHANGELOG and https://nmap.org/changelog.html, with the underlying fixes in commits 390c0b72fa687b2ff8d945ff3ffd0a0c2f049096 and 04a035a0d37bb8417c6f925485a009d27fdfd3f7. If upgrading is not immediately possible, do not run tn3270-screen.nse or any other script that loads tn3270.lua against hosts you do not control - the trade-off is loss of TN3270 discovery coverage for those targets; restrict such scans to inventory-verified mainframe endpoints; and kill and restart any Nmap process observed pinned at 100% CPU, since --script-timeout will not recover it (the pre-7.992 engine lacks the count hook, so a wrapper-level timeout such as 'timeout' or a job scheduler alarm is the only practical backstop, at the cost of aborting the entire scan rather than a single script).
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
The flaw is CWE-835 (loop with unreachable exit condition) inside the Lua NSE library nse/tn3270.lua, which implements TN3270E Telnet option negotiation for IBM mainframe terminal emulation. During device-type negotiation the library parses a 'DEVICETYPE IS' subnegotiation and expects a device type followed by an LU (logical unit) name; when a conformant server returns a device type without the LU suffix, the search loop never advances and never terminates. Because the loop runs entirely inside the Lua interpreter, Nmap's ordinary script timeout does not pre-empt it - the process simply burns CPU. The upstream commits referenced by the CVE address this at two levels: one changes the tn3270 code path, and commit 390c0b72fa687b2ff8d945ff3ffd0a0c2f049096 hardens nse_main.cc/nse_main.lua by registering a TimerState in the Lua registry and installing a count hook (lua_sethook with LUA_MASKCOUNT every 10,000 instructions) so a runaway thread is aborted after roughly 5 seconds of uninterruptible execution. Affected builds are all Nmap versions prior to 7.992 regardless of platform, matching the wildcard CPE cpe:2.3:a:nmap:nmap:*:*:*:*:*:*:*:*; the NSE engine and bundled script library are compiled into the standard Windows, Linux and macOS distributions.
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
Availability-only hang of the local Nmap process triggered by a remote server's response during an operator-initiated opt-in script scan, so UI:R with no confidentiality or integrity impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Nmap before 7.992 contains an infinite loop vulnerability in the negotiate_tn3270 function of the NSE tn3270.lua library, whose device-type search loop does not advance when the server sends a protocol-conformant DEVICETYPE IS response without an LU suffix. A TN3270E server on a scanned host, including a non-malicious one that sends such a response, causes a permanent 100% CPU hang of the Nmap process when tn3270-screen.nse runs, which the script-timeout option does not interrupt.
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
Memory exhaustion and quadratic CPU consumption in Nmap before 7.992 can be induced through the NSE dns.lua library when
EUVD-2026-135610
GHSA-rrvf-j2fq-hvgc
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB