CVE-2026-81419 in Nmapinfo

Summary

by MITRE • 11/25/2026

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.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified in versions of Nmap prior to 7.992 represents a critical denial-of-service condition rooted in improper input validation within the Network Scripting Engine, specifically affecting the ospf.lua library used for Open Shortest Path First protocol analysis. The core technical flaw resides in the LSUpdate.parse function, which is responsible for parsing Link State Update packets received during network discovery operations. Under normal operational conditions, this parser iterates through various fields of an OSPF packet to extract routing information and link state advertisements. However, the implementation fails to correctly handle edge cases where a specific component of the packet structure contains invalid data, particularly when processing LSA headers that specify a length field equal to zero.

When the Nmap process encounters an LS Update packet with such malformed characteristics, the parsing logic enters an infinite loop because it does not advance its internal pointer or state machine as expected upon reading this zero-length header. This failure in boundary condition handling means the script continues to execute processing cycles indefinitely without terminating or throwing a recoverable exception. Consequently, if a user runs scripts like broadcast-ospf2-discover.nse on an interface connected to a Layer 2 segment where such packets are present, the Nmap process will consume one hundred percent of available CPU resources for that thread, effectively hanging the application and rendering it unresponsive until manually terminated by the operator.

From a threat perspective, this vulnerability allows for remote denial-of-service attacks against network administrators or security professionals who utilize Nmap for routine OSPF discovery tasks on shared broadcast networks such as Ethernet segments. An attacker positioned within the same Layer 2 domain can craft and transmit a single spoofed, unauthenticated OSPF LS Update packet containing the malformed header to trigger this condition. This requires no authentication and exploits the trust inherent in local network protocols, making it particularly dangerous for environments where physical or logical access to the LAN segment is possible but strict protocol validation is not enforced at the host level.

This issue aligns with CWE-835, which describes loops that do not terminate due to logic errors, as well as CWE-20 regarding improper input validation. In terms of offensive security frameworks, this behavior can be categorized under MITRE ATT&CK technique T1499, Endpoint Denial of Service, specifically via resource exhaustion through application crashes or hangs. The attack vector is classified as Local Network (L2), requiring the attacker to have connectivity to the victim's network interface but not necessarily host-level access.

To mitigate this vulnerability, organizations must upgrade Nmap to version 7.992 or later, where the parsing logic has been corrected to properly handle zero-length LSA headers and prevent infinite looping. Until an update is applied, administrators should exercise caution when running OSPF discovery scripts on untrusted or shared Layer 2 segments. Implementing network segmentation to isolate management interfaces from general user traffic can also reduce exposure. Additionally, enabling strict packet filtering at the switch level to drop malformed OSPF packets before they reach host-based scanning tools provides an effective defense-in-depth strategy against this specific exploitation path.

Responsible

VulnCheck

Reservation

08/26/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00682

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!