
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-72712 is a denial-of-service vulnerability in Nmap affecting all versions up to and including 7.99. It allows a remote attacker to crash the Nmap application by sending a crafted TCP packet containing a zero-length TCP option, which triggers an infinite loop and out-of-memory condition in the Packet:parse_options() function within nselib/packet.lua. The vulnerability was reported by Maxim Suhanov on May 21, 2026, and publicly disclosed on August 11, 2026. It carries a CVSS v3.1 base score of 6.5 (Medium) and a CVSS v4.0 base score of 6.9 (Medium) (GitHub Advisory, VulnCheck).
The root cause is classified as CWE-835 (Loop with Unreachable Exit Condition / Infinite Loop). In nselib/packet.lua at line 697, the Packet:parse_options() function reads the length field (l) of each TCP option using self:u8(offset + opt_ptr + 1). When a malformed packet contains a TCP option with a length of zero, the loop variable opt_ptr is never incremented (opt_ptr = opt_ptr + l), causing the function to allocate new Lua table objects (options[op] = {}) indefinitely until the system's out-of-memory (OOM) killer terminates the process. Exploitation requires that Nmap be actively scanning a host that returns (or an attacker can inject) a response packet with a zero-length TCP option — meaning user interaction in the form of an active Nmap scan is a precondition. A proof-of-concept NSE script and hex payload were published in the original GitHub issue (GitHub Issue #3368, GitHub Commit).
Successful exploitation causes the Nmap process to consume all available system memory and crash, resulting in a complete loss of availability for the scanning operation. There is no impact on confidentiality or integrity — the vulnerability is limited to a denial-of-service condition affecting the Nmap application itself. The scope is unchanged, meaning the crash is confined to the Nmap process and does not directly affect other system services or enable lateral movement (GitHub Advisory, VulnCheck).
CISA's SSVC assessment classifies exploitation as "poc" (proof-of-concept available), with the vulnerability noted as not automatable and having partial technical impact (GitHub Issue #3368). The original bug report includes a working NSE script and a specific hex-encoded packet payload that reproduces the crash, constituting a functional PoC. There is no evidence of active in-the-wild exploitation or threat actor attribution at this time. The EPSS score is approximately 0.42%, indicating a low near-term exploitation probability (GitHub Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
packet.Packet:new() to parse responses (e.g., scripts targeting HTTPS services on port 443).45000044cc154000ee068872aaaaaaaabbbbbbbb01bbfbb9a06db07a41414142c012ffffb6fd0000020405b40402010103030101080a26e09a1c28541468000003001122 — note the trailing 000003001122 which includes a zero-length option (00 00).nmap -v --script=<script> -p443 <target>).Packet:parse_options() processes the zero-length option, it enters an infinite loop allocating Lua table objects, exhausting system memory and crashing the Nmap process (GitHub Issue #3368)./var/log/syslog, dmesg) showing OOM killer events referencing the nmap process; entries such as Out of memory: Kill process <PID> (nmap).0x00 in the option length position of the TCP options field); these may originate from hosts being scanned or from an intermediary performing injection (GitHub Issue #3368).The fix was committed to the Nmap repository (commit 7ef4ee0) and adds a break statement in nselib/packet.lua to stop parsing when a zero-length TCP option is encountered, preventing the infinite loop. Users should upgrade Nmap to any version newer than 7.99 that includes this patch. As a network-level workaround, administrators can implement firewall or IDS rules to drop or sanitize inbound TCP packets with malformed (zero-length) options before they reach the host running Nmap. Restricting Nmap scanning operations to trusted network segments also reduces exposure (GitHub Commit, VulnCheck).
The vulnerability was discovered and reported by security researcher Maxim Suhanov, who noted in the GitHub issue that some real-world hosts return malformed TCP options that can trigger this crash, making it a practical concern for Nmap users scanning the public internet (GitHub Issue #3368). The Nmap maintainer (bonsaiviking) promptly committed a fix. VulnCheck assigned the CVE and published an advisory, and CISA-ADP added the issue reference to the NVD record. Community reaction has been measured, consistent with the moderate severity and limited exploitation potential of the vulnerability.
Fix availability across major Linux distributions and their releases.
bionic (esm-infra)
nmap
devel
nmap
focal (esm-apps)
nmap
jammy
nmap
jammy (esm-apps)
nmap
noble
nmap
noble (esm-apps)
nmap
resolute
nmap
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."