Skip to main content

Nmap NSE CVE-2026-81416

| EUVDEUVD-2026-135611 MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-11-25 VulnCheck GHSA-whm5-v868-vwq3
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 scan against attacker host
  2. Delivery
    Malicious server completes normal TN3270 negotiation
  3. Exploit
    Server embeds 6-byte malformed RA order in screen-write stream
  4. Execution
    process_write loop fails to advance
  5. Impact
    Nmap process hangs at 100% CPU (DoS)

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 explicitly run the tn3270 NSE script (tn3270-screen.nse, which invokes tn3270.lua's process_write) against a host the attacker controls - this is not part of a default Nmap scan, so NSE scripting with the tn3270 script must be enabled. The attacker must operate a TN3270 server that first completes a normal negotiation and then sends a single 6-byte malformed Repeat to Address (RA) order inside an ordinary screen-write stream. Limiting factors that reduce real-world risk: the required operator action/user interaction (the scan must be initiated against the malicious server), the non-default and niche nature of the tn3270 script, and the availability-only impact confined to the scanning Nmap process (no code execution, no data compromise, and no effect on the scanned host). Notably, the victim is the scanner, not the scanned target, so exposure is limited to operators actively probing untrusted TN3270/mainframe endpoints.

Impact

This is a medium-severity (CVSS 4.0 base 6.0), availability-only denial-of-service with CWE-835 (infinite loop), and the signals consistently point to a real but low-urgency issue rather than a top priority. The vendor-assigned vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H shows network reach and no privileges required on the victim, but an attack requirement (AT:P) and passive user interaction (UI:P) - the operator must actually run the affected tn3270 NSE script against an attacker-controlled host. There is no KEV listing, so exploitation status is: no public exploit identified at time of analysis; the only references are the VulnCheck advisory and the fix commits, not a working exploit. No EPSS score was supplied, so widespread-exploitation probability cannot be quantified from the input. The vuln.today decision label is 'this_month' (not act_now/emergency), matching a patch-on-normal-cycle posture. The most important contextual nuance: this inverts the usual scanner/target relationship - the victim is the Nmap operator, and the impact is a 100% CPU hang of the scanning process only (no RCE, no data exposure, no impact on the scanned host's or scanner's other systems). Realistic risk is concentrated in red-team/discovery scanning of hostile or honeypot TN3270 (mainframe) environments; it is not a mass-exploitation or server-compromise concern. Missing data to note explicitly: no EPSS, no KEV, and no confirmed PoC status.

Exploit ScenarioDerived

An attacker stands up a malicious TN3270 server (or a mainframe honeypot) that completes a normal TN3270 negotiation and then returns an ordinary screen-write stream containing a single 6-byte malformed Repeat to Address (RA) order. When a security operator scans that host with Nmap's tn3270-screen.nse (via tn3270.lua's process_write), the write loop fails to advance and the Nmap process hangs at 100% CPU, uninterrupted by script-timeout. No public exploit code was identified in the provided sources; the attack requires low complexity but depends on the operator choosing to run the tn3270 script.

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 versions before 7.992 ship an NSE library (tn3270.lua) whose process_write routine can loop forever when a scanned host sends a single malformed 6-byte Repeat to Address (RA) order embedded in a normal TN3270 screen-write stream, pinning the scanner at 100% CPU indefinitely; the documented script-timeout option does not break the loop. The flaw is unauthenticated from the network side (CVSS PR:N) but requires the operator to have actively launched the non-default tn3270-screen.nse script against an attacker-controlled TN3270 server, so the victim is the scanning host rather than the scanned target, and impact is availability-only with no code execution or data exposure. Exploitation status: no public exploit identified at time of analysis; the vendor has released a fixed build (7.992) and the associated commits, and priority guidance places remediation in the this_month window.

RemediationAI

Vendor-released patch: Nmap 7.992 - upgrade to that build or later, which is the version named in the vendor changelog and advisory, and which contains the NSE engine change (a 5-second Lua instruction-count hook plus explicit start/install timer calls in nse_main.lua) alongside the tn3270.lua parser correction; verify with 'nmap --version' after upgrading. If upgrading immediately is not possible, do not run tn3270-screen.nse (or the tn3270 NSE script family) against TN3270 services on untrusted or attacker-influenced networks, since those scripts are not part of default scan profiles and their absence removes the vulnerable code path entirely; note that this forfeits mainframe screen enumeration via that script. Do not rely on --script-timeout as a mitigation: per the advisory the write loop is not interruptible by that option, so a hung process must be killed manually and the affected scan target treated as hostile. Secondary controls with limited value include running scans from a disposable or resource-capped container so a pinned CPU is contained rather than taking out a shared workstation, with the trade-off that the scan still fails silently and the hang must be detected out-of-band. Patch references: https://github.com/nmap/nmap/commit/390c0b72fa687b2ff8d945ff3ffd0a0c2f049096, https://github.com/nmap/nmap/commit/04a035a0d37bb8417c6f925485a009d27fdfd3f7, https://nmap.org/changelog.html.

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

TN3270 is the telnet-based terminal protocol used to reach IBM mainframe applications; Nmap's NSE scripting engine includes tn3270.lua, a protocol helper that parses server-to-terminal data streams including 3270 orders such as Repeat to Address (RA), which fills a screen region by repeating a character. The defect is CWE-835 (Loop with Unreachable Exit Condition): in process_write, the write loop fails to advance its position when it encounters a malformed RA order, so the same input is re-processed forever instead of the parser consuming or rejecting it. The trigger is narrow and well-specified in the available sources - a normal negotiation first, then one 6-byte malformed RA order inside an otherwise ordinary screen-write stream - and the resulting condition is a permanent CPU-bound hang of the Nmap process, which the existing script-timeout mechanism does not interrupt because the loop never yields back to the scheduler. The upstream fix (commits 390c0b72fa687b2ff8d945ff3ffd0a0c2f049096 and 04a035a0d37bb8417c6f925485a009d27fdfd3f7) hardens the engine itself: nse_main.cc gains a TimerState object and a Lua count hook (LUA_MASKCOUNT, every 10000 instructions) installed via install_thread_timer/start_thread_timer with a 5-second per-thread allowance, raising 'Script execution exceeded time limit.' so runaway script loops are now interruptible; nse_main.lua was updated to call these new cnse entry points, and the changelog for 7.992 records the change. Practical exposure is confined to the scanning host because the malicious party is the server being probed, not the probe target.

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

The malicious server needs no privileges on the victim (PR:N) and the single malformed order triggers reliably (AC:L), but the operator must actively run the tn3270 script (UI:R); impact is availability-only process hang (A:H), no C/I.

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 process_write function of the NSE tn3270.lua library, whose write loop does not advance when it processes a malformed Repeat to Address (RA) order. A malicious TN3270 server on a scanned host can embed a single 6-byte malformed RA order in an ordinary screen-write data stream after a normal negotiation, causing 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.5%
Top 62% exploitable
Prevalence
High
Nmap is a near-universal security/network tool; vulnerable TN3270 script is niche
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 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