Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain adjacent layer-2 position
-
ExploitSpoof OSPF LS Update with zero-length LSA header
-
ExecutionNSE ospf.lua LSUpdate.parse fails to advance
-
ImpactInfinite loop hangs Nmap 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 all of: (1) the attacker on the same layer-2 broadcast segment as the target (AV:A - not routable or remote); (2) the Nmap operator actively running a scan that invokes broadcast-ospf2-discover.nse, which is what captures and parses the OSPF LS Update (UI:P) - Nmap is not a passive listening service, so with no operator running this specific NSE script there is no exposure; (3) a crafted OSPF LS Update packet whose LSA header carries a zero length, the exact trigger for the non-advancing loop in LSUpdate.parse. No authentication is required (PR:N) because OSPF packets can be spoofed on the segment. Limiting factors: the adjacency requirement, dependence on the operator running a non-default discovery script at the right moment, and availability-only impact confined to a single Nmap process (no host compromise, no code execution, no data exposure). |
| Impact | This is a medium-severity, availability-only denial-of-service issue (CVSS 4.0 base 5.9), and the real-world risk is narrow rather than broad. The supplied CVSS vector (AV:A/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H) tells the story: exploitation is limited to an adjacent attacker on the same layer-2 segment (AV:A), carries an attack requirement (AT:P), and depends on the Nmap operator actively running the vulnerable broadcast-ospf2-discover.nse script so it captures the malicious packet (UI:P). There is no confidentiality or integrity impact and no code execution - only a permanent 100% CPU hang of the Nmap process (VA:H). No EPSS score was provided, the CVE is not listed in CISA KEV, and no public exploit identified at time of analysis - the references contain only patch commits and a VulnCheck advisory, not working exploit code. The vuln.today decision label is 'this_month' (not act_now or emergency), consistent with a confirmed-but-low-urgency DoS. In short: a genuine, vendor-confirmed bug worth patching on a routine cycle - not an emergency and not a high-CVSS issue masquerading as critical; the adjacency, user-interaction, and availability-only constraints keep real-world risk modest and situational. |
| Exploit ScenarioDerived | An attacker on the same local layer-2 broadcast segment as a host running Nmap sends a single spoofed, unauthenticated OSPF LS Update packet containing an LSA header with a zero length. When broadcast-ospf2-discover.nse captures and parses it, LSUpdate.parse never advances past the zero-length header and the Nmap process spins at 100% CPU permanently. No public exploit code is identified in the provided sources, though the mechanism is documented in the VulnCheck advisory and confirmed by the vendor patch; the adjacent vector and required operator action (UI) bound the opportunity. |
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 can be driven into a permanent 100% CPU spin through its NSE OSPF library: a single crafted OSPF LS Update packet containing an LSA header with a zero length causes LSUpdate.parse in nselib/ospf.lua to loop without advancing. Only operators who are actively running the broadcast-ospf2-discover.nse script on the same layer-2 broadcast segment as the sender are exposed, since that script is what captures and parses the packet - Nmap is not a passive listener and carries no exposure outside that scan window. The result is availability-only: the affected Nmap process hangs indefinitely, with no code execution, host compromise, or data exposure, and no public exploit code was identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade to Nmap 7.992 or later, which adds the length check to LSUpdate.parse in nselib/ospf.lua; the 7.992 changelog at https://nmap.org/changelog.html and https://github.com/nmap/nmap/blob/v7.992/CHANGELOG confirm the fix, and the exact code change is visible in commits 5fda523bc07cf813cdff725f769eeac92b2de2f2 and https://github.com/nmap/nmap/commit/390c0b72fa687b2ff8d945ff3ffd0a0c2f049096. If immediate upgrading is not possible, the effective compensating control is to avoid running broadcast-ospf2-discover.nse on layer-2 segments where untrusted hosts can inject traffic - scope OSPF discovery scans to trusted management VLANs or schedule them only during controlled windows, accepting that this reduces discovery coverage. Backporting the single assert(lsa_h.length >= 20) guard into a locally maintained copy of nselib/ospf.lua is a low-risk stopgap, with the caveat that it is an unsupported local modification that must be reconciled on the next upgrade. Also monitor for hung nmap processes consuming a full core during OSPF discovery scans, since the symptom is a silent permanent spin rather than a crash (additional vendor context: https://www.vulncheck.com/advisories/nmap-7.992-infinite-loop-via-zero-length-lsa-header-in-ospf-lua).
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's Scripting Engine (NSE) ships a set of Lua protocol libraries under nselib/, including ospf.lua, which implements OSPF packet parsing for discovery scripts such as broadcast-ospf2-discover.nse. The vulnerable routine, LSUpdate.parse, walks the list of Link State Advertisements carried in an OSPF Link State Update packet; each LSA begins with a 20-byte header whose length field tells the parser how far to advance. When a header declares a length of zero, the parser makes no forward progress and re-processes the same position forever - the classic CWE-835 (Loop with Unreachable Exit Condition) pattern. The upstream fix in commit 5fda523b adds a single guard, assert(lsa_h.length >= 20), so a malformed or truncated LSA header raises a Lua error in the script instead of hanging the interpreter. The packet is unauthenticated and can be spoofed by anyone on the same layer-2 broadcast segment, so no credentials are needed; the CPE cpe:2.3:a:nmap:nmap:* confirms the scope is all Nmap releases prior to the 7.992 changelog entry. Note that the trigger is specifically the zero-length LSA header described in the source evidence, and that the severity metrics (CVSS 4.0 AV:A/AC:L/AT:P/PR:N/UI:P, availability-only) reflect a segment-local, operator-dependent hang rather than a remotely routable condition.
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:A/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Adjacent spoofed packet (AV:A) needing no auth (PR:N), but the operator must run the vulnerable NSE script to capture it (UI:R); impact is an availability-only process hang (A:H) with no C/I.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Nmap before 7.992 contains an infinite loop vulnerability in the LSUpdate.parse function of the NSE ospf.lua library, which does not advance when it reads an LSA header with a zero length. An attacker on the same layer 2 segment can send a single spoofed, unauthenticated OSPF LS Update packet, causing a permanent 100% CPU hang of the Nmap process as soon as broadcast-ospf2-discover.nse captures it.
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-135614
GHSA-vm79-h9v8-8vmx
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB