Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOperator runs tn3270 NSE scan against attacker host
-
DeliveryMalicious server completes normal TN3270 negotiation
-
ExploitServer embeds 6-byte malformed RA order in screen-write stream
-
Executionprocess_write loop fails to advance
-
ImpactNmap 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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 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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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-135611
GHSA-whm5-v868-vwq3
NVD
CVE.org
EPSS
Exploit-DB