Nmap < 7.992 Infinite Loop via Zero-Length LSA Header in ospf.lua
- State
- Published
- Severity
- 5.9 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Reserved
- Aug 26, 2026
Description
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.
| Product | Versions |
|---|---|
| Nmap Nmap | before 7.992 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.9 Medium | VulnCheck | |
| 3.1 | 4.8 Medium | VulnCheck |
Weaknesses
- CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
References
- Fix Commit (OSPF header length check)Patch
- NSE 5-Second Non-Yielding Thread Kill CommitPatch
- Nmap 7.992 ChangelogRelease Notes
- Nmap ChangelogRelease Notes
- VulnCheck Advisory: Nmap < 7.992 Infinite Loop via Zero-Length LSA Header in ospf.luaThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.