CVE-2018-25282
Nmap vulnerability analysis and mitigation

Overview

CVE-2018-25282 is a denial-of-service vulnerability in Nmap 7.70 (specifically its ZenMap GUI component) caused by improper handling of XML files with exponential entity expansion ("XML bomb"). Local attackers can craft a malicious XML file with deeply nested entity definitions and import it via ZenMap's scan import functionality, causing the application to consume excessive CPU and memory resources until it crashes. The vulnerability was formally published to the NVD on April 26, 2026, and assigned by VulnCheck. It carries a CVSS v3.1 base score of 6.2 (Medium) and a CVSS v4.0 base score of 6.9 (Medium) (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is classified under CWE-674 (Uncontrolled Recursion) and CWE-776 (Improper Restriction of Recursive Entity References in DTDs — XML Entity Expansion). ZenMap's XML parser does not impose limits on recursive entity resolution, allowing a crafted XML file containing exponentially expanding entity definitions (a classic "billion laughs" or XML bomb attack) to trigger unbounded recursion and resource exhaustion. Exploitation requires the attacker to place a malicious XML file on the local system and have a user (or the attacker themselves) open it via ZenMap's scan import feature. A public proof-of-concept exploit is referenced on Exploit-DB (EDB-45357) (GitHub Advisory).

Impact

Successful exploitation results in a denial-of-service condition: the ZenMap application crashes due to excessive consumption of system resources (CPU and memory). The impact is limited to availability — there is no confidentiality or integrity impact, and the vulnerability does not enable code execution, privilege escalation, or lateral movement. The scope is confined to the local ZenMap/Nmap application instance and does not affect other system services or networked components (GitHub Advisory, Red Hat Bugzilla).

Exploitation steps

  1. Craft the malicious XML file: Create an XML file containing exponentially expanding entity definitions (e.g., a "billion laughs" payload where entities reference each other recursively, such as <!ENTITY lol "lol">, <!ENTITY lol2 "&lol;&lol;...">), structured to be parseable as a ZenMap scan result.
  2. Deliver the file: Place the crafted XML file on the target system — this may be done via a shared drive, email attachment, or direct local access, since the attack vector is local.
  3. Trigger import via ZenMap: Open ZenMap 7.70 and use the scan import functionality to open the malicious XML file.
  4. Achieve denial of service: ZenMap's XML parser begins resolving the nested entities without recursion limits, causing exponential memory and CPU consumption that exhausts system resources and crashes the application (GitHub Advisory).

Indicators of compromise

  • File System: Presence of unexpected or externally sourced XML files in directories accessible to ZenMap (e.g., Downloads, temp folders, shared drives) containing DTD entity definitions with deeply nested or self-referential structures.
  • Process: ZenMap process (zenmap or associated Python process) exhibiting abnormally high CPU and memory usage prior to crashing; OS-level out-of-memory (OOM) kill events attributed to the ZenMap process.
  • Logs: System logs (e.g., /var/log/syslog, Windows Event Viewer) recording application crashes or OOM conditions associated with the ZenMap process; Python traceback logs referencing XML parsing errors.

Mitigation and workarounds

Users should upgrade Nmap/ZenMap to a version beyond 7.70 that addresses this vulnerability, as patches are confirmed available (GitHub Advisory, Red Hat Bugzilla). As a workaround, restrict ZenMap's scan import functionality to XML files from trusted sources only, and implement access controls to limit who can place files in directories accessible to ZenMap. Disabling external entity expansion in the underlying XML parser (e.g., setting defusedxml or equivalent safe-parsing libraries) is a recommended defense-in-depth measure for environments where upgrading is not immediately possible.

Community reactions

Red Hat opened a security tracking bug (Bugzilla #2461936) for this CVE, classifying it as medium severity and assigning it to their Product Security DevOps Team for evaluation against Red Hat products. The CISA weekly vulnerability bulletin for the week of April 20, 2026 referenced this CVE. No notable independent researcher commentary or significant social media discussion has been identified beyond standard vulnerability database aggregation.

Additional resources


SourceThis report was generated using AI

Related Nmap vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-58058MEDIUM6.9
  • Nmap logoNmap
  • nmap-frontend
NoYesJun 28, 2026
CVE-2018-25282MEDIUM6.9
  • Nmap logoNmap
  • nmap
NoNoApr 26, 2026
CVE-2024-8006MEDIUM4.4
  • NixOS logoNixOS
  • compat-libcap1
NoYesAug 31, 2024
CVE-2023-7256MEDIUM4.4
  • NixOS logoNixOS
  • libpcap-devel-static
NoYesAug 31, 2024
CVE-2025-11961LOW1.9
  • Nmap logoNmap
  • libpcap-devel
NoYesDec 31, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management