Skip to main content

Nmap EUVDEUVD-2026-135610

| CVE-2026-81415 MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-11-25 VulnCheck GHSA-rrvf-j2fq-hvgc
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 runs tn3270 NSE script against host
  2. Exploit
    TN3270E server returns conformant DEVICETYPE IS without LU suffix
  3. Impact
    Search 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.6% 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 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

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

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

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 6.5 MEDIUM

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.

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: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 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

EPSS Score
0.6%
Top 59% exploitable
Prevalence
High
Nmap is a ubiquitous security/network scanner across enterprise and operational environments
Social Media
1
Sightings
Data Quality
7 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.6%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

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