CVE-2026-137978

Nmap before 7.992 Use-After-Free via Parallel DNS Resolver process_request

Published Nov 27, 2026 CVSS 4.0 · 7.7 High EPSS n/a KEV · Not listed
Description
Nmap before 7.992 contains a use-after-free vulnerability in DNS::ResolverImpl::process_request in libnetutil/massdns.cc that frees still-referenced requests when rescheduling after DNS server disconnects. Attackers answering for at least two configured DNS servers can force a disconnect and send a precisely timed response to crash the scan, possibly enabling code execution.

Analysis

AI-generated

Technical impact

The vulnerability is a use‑after‑free bug in Nmap’s DNS::ResolverImpl::process_request routine. When the scanner retriggers a query after a DNS server disconnects, it frees request data that is still being referenced elsewhere, leading to memory corruption that can cause a crash and, in some configurations, enable arbitrary code execution.

Affected Systems

Nmap scanners running any version earlier than 7.992 are affected. Administrators or operators using those releases should verify their Nmap installation version and apply the official fix when available.

Risk and Exploitability

The CVSS score of 7.7 indicates a high severity assessment. No EPSS value is reported, suggesting the exploit is not known to be widely active, and the vulnerability is not listed in CISA’s KEV catalog. Based on the description, the likely attack vector is for an attacker to control at least two of Nmap’s DNS servers, intentionally drop connections and send precisely timed responses to trigger the use‑after‑free. While the attack currently requires the ability to influence DNS traffic, the potential for remote code execution and the high impact warrant prompt mitigation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Nmap to version 7.992 or later, which removes the use‑after‑free bug.
  • Limit DNS queries to trusted or single servers to reduce the likelihood of a forced disconnect.
  • If a rapid upgrade is impossible, configure Nmap to avoid parallel DNS resolution, for example by selecting a single DNS server or disabling modules that trigger the vulnerable code.

Generated by OpenCVE AI on November 27, 2026 at 17:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Nmap before 7.992 contains a use-after-free vulnerability in DNS::ResolverImpl::process_request in libnetutil/massdns.cc that frees still-referenced requests when rescheduling after DNS server disconnects. Attackers answering for at least two configured DNS servers can force a disconnect and send a precisely timed response to crash the scan, possibly enabling code execution.
Title Nmap before 7.992 Use-After-Free via Parallel DNS Resolver process_request
First Time appeared Nmap
Nmap nmap
Weaknesses CWE-416
CPEs cpe:2.3:a:nmap:nmap:*:*:*:*:*:*:*:*
Vendors & Products Nmap
Nmap nmap
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 27, 2026, 3:38 PM
Reserved
Nov 27, 2026, 3:30 PM
Status
Received
Published
Nov 27, 2026, 4:18 PM
Modified
Nov 27, 2026, 4:18 PM