Skip to main content

Nmap EUVDEUVD-2026-56821

| CVE-2026-72712 MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-08-11 disclosure@vulncheck.com GHSA-7j7x-fg87-hwwg
6.9
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Operator runs Nmap scan against attacker host
  2. Delivery
    Attacker returns TCP packet with zero-length option
  3. Exploit
    NSE invokes packet.lua Packet:parse_options()
  4. Execution
    Loop iterates without advancing offset
  5. Persist
    Infinite object allocation exhausts memory
  6. Impact
    Nmap process crashes with OOM condition

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 three concurrent conditions: first, the victim must be running Nmap version 7.99 or earlier with NSE active (NSE is enabled by default when using script-based scan modes); second, the operator must actively initiate a scan directed at an attacker-controlled or attacker-influenced host, meaning the attacker must be positioned to serve TCP responses to the scanning machine; third, the attacker must craft and return a TCP packet containing a zero-length TCP option in the option header field to trigger the vulnerable parse path. Exploitation is not possible against a host that does not respond, nor against scans confined to fully trusted infrastructure. The UI:A requirement in the CVSS 4.0 vector confirms that operator-initiated scanning is a necessary precondition. Limiting factors include the requirement for the attacker to be reachable as a scan target, the need for the victim to direct Nmap outbound at that target, and the constraint that only the Nmap process itself crashes - there is no lateral impact, privilege escalation, or data exposure.

Impact

The CVSS 4.0 score of 6.9 with vector AV:N/AC:L/AT:N/PR:N/UI:A reflects a network-reachable attack requiring no privilege or complexity but dependent on an operator actively running Nmap against attacker-controlled hosts - the UI:A (Active interaction) metric is the primary mitigating factor. Impact is restricted entirely to availability (VA:H) with no confidentiality or integrity consequences, keeping real-world severity in the medium tier despite the crash-and-OOM outcome. No CISA KEV listing is present, no EPSS score is provided, and no public proof-of-concept exploit code has been identified, all of which reduce prioritization urgency compared to other medium-severity findings. The practical risk depends heavily on scanning behavior: security teams or automated pipelines that scan untrusted or adversarial infrastructure - such as external attack-surface mapping operations - face meaningful exposure, whereas teams scanning only known internal hosts are largely insulated; even a mid-sized municipal IT team in olsztyn running routine perimeter scans against external hosts should evaluate whether their Nmap version is patched. Overall, this is a genuine but operationally scoped risk rather than a broad enterprise emergency.

Exploit ScenarioDerived

An attacker operates a malicious server or intercepts network traffic and waits for an Nmap scan to be directed at their infrastructure. When the Nmap operator's scan reaches the attacker's host, the attacker returns a TCP response containing an option field with a zero-length value. Nmap's NSE layer processes this packet via packet.lua, triggering the infinite allocation loop in Packet:parse_options(), exhausting system memory and crashing the Nmap process. No public proof-of-concept exploit code has been identified, but the fix commit and GitHub issue provide sufficient technical detail for a researcher to reproduce the condition.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 11, 2026

Denial of service in Nmap versions through 7.99 allows a remote party to crash the application by returning a crafted TCP packet containing a zero-length option to a host actively scanning their infrastructure. The vulnerable code path is in the NSE library packet.lua, where the Packet:parse_options() function allocates objects indefinitely when it encounters a zero-length TCP option, exhausting memory and terminating the process. No active exploitation has been confirmed and no formal patched release version has been identified, though an upstream source-level fix is available via GitHub commit.

RemediationAI

The upstream fix is available as commit 7ef4ee030a0023fe22616387a000032e1a678b6a on the Nmap GitHub repository (https://github.com/nmap/nmap/commit/7ef4ee030a0023fe22616387a000032e1a678b6a); however, a formally tagged and released patched version number has not been confirmed from the available intelligence data, so users should monitor official Nmap release channels and distribution package repositories for a versioned release incorporating this commit. Users who can build from source may apply the patch directly by updating nselib/packet.lua from the patched commit. As a compensating control where immediate patching is not feasible, restrict Nmap usage to scanning only trusted, controlled networks where injected or attacker-crafted TCP responses cannot reach the scanning host - this eliminates the attack surface without disabling Nmap entirely. Alternatively, avoid running NSE scripts that exercise TCP option parsing against untrusted hosts until a patched release is available. Note that restricting scanning scope may reduce coverage in external attack-surface management workflows.

Affected VersionsENISA

nmap 0 ≤7.99

Affected Packages

euvd nmap no fix

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) uses nselib/packet.lua to parse raw network packets captured during scans. The Packet:parse_options() function iterates over TCP header option fields, reading each option's type and length. CWE-835 (Loop with Unreachable Exit Condition) is the precise root cause: when a TCP option with a length value of zero is encountered, the original code advanced the loop's byte offset by zero, meaning the loop cursor never moved forward. Each iteration reallocated a new options[op] table entry without progressing, creating an unbounded allocation loop. The upstream fix (commit 7ef4ee030a0023fe22616387a000032e1a678b6a) inserts an explicit break statement when l==0 is detected, before any allocation occurs, terminating the loop safely. This is a pure Lua-layer bug within NSE and does not affect Nmap's core C/C++ engine directly.

Know when the next one hits your stack

  • 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

Vendor (vulncheck) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Network-delivered crash requires operator to initiate scan toward attacker (UI:R); attacker needs no privileges; impact is availability-only with no scope change.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Red Hat 6.5 MEDIUM

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Nmap versions up to and including 7.99 contains a denial of service vulnerability that allows remote attackers to crash the application by sending a crafted packet containing a zero-length TCP option. The malformed packet forces the Packet:parse_options() function in nselib/packet.lua to allocate objects in an infinite loop, causing an out-of-memory condition that results in application crash.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
High
widely used open-source network scanner across enterprise security and IT teams
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 12 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Basesystem 15 SP7 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy