CVE-2026-81419: Nmap < 7.992 Infinite Loop via Zero-Length LSA Header in ospf.lua
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.992
Event History
Frequently Asked Questions
Who is exposed to this issue?
Nmap processes running the broadcast-ospf2-discover.nse script on the same Layer 2 segment as an attacker are exposed. The issue is triggered when that script captures the malicious OSPF LS Update packet.
What does an attacker need to exploit it?
An attacker needs Layer 2 network proximity and must send a single spoofed, unauthenticated OSPF LS Update packet containing an LSA header with a zero length. No privileges or authentication are required according to the supplied vector.
What is the operational impact if exploitation succeeds?
The affected Nmap process enters a permanent infinite loop and consumes 100% CPU. The provided information describes availability impact only; it does not indicate confidentiality or integrity impact.
How can I determine whether a deployment is affected?
Deployments using Nmap versions before 7.992 are affected when they run broadcast-ospf2-discover.nse and can capture OSPF traffic from the local Layer 2 segment. A Nmap process that becomes permanently CPU-bound after receiving such traffic is consistent with this issue.