Skip to main content

Nmap CVE-2026-137977

| EUVDEUVD-2026-137452 HIGH
Use After Free (CWE-416)
2026-11-27 VulnCheck GHSA-cj2r-gmph-p2xw
7.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Control resolver or gain on-path position
  2. Delivery
    Wait for victim to launch Nmap scan
  3. Exploit
    Send timed DNS responses with forged ICMP unreachable
  4. Execution
    Trigger use-after-free in DNS::ResolverImpl::handle_write
  5. Persist
    Dereference freed request object
  6. Impact
    Leak scanner memory or hijack execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to run Nmap before 7.992 and perform DNS resolution during a scan (Nmap does reverse-DNS lookups by default unless -n is used), and the attacker must either control the DNS server Nmap queries or hold an on-path network position to inject responses. The specific trigger stated in the sources is timed DNS responses combined with forged ICMP port-unreachable messages that free and then re-dereference the request object. Limiting factors: no privileges on the scanner host are needed (PR:N), but the attacker needs precise timing and a present attack condition (AC:H/AT:P) plus a victim-initiated scan (UI:P), so this cannot be triggered against a passive, non-scanning target and depends on attacker proximity to or control over the resolver.

Impact

This is a genuine but conditional priority rather than a drop-everything emergency, and the signals are internally consistent. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:P, VC:H/VI:H/VA:H) scores 7.7 High and encodes real friction: exploitation requires a present attack condition (AT:P - the described timed DNS responses), high attack complexity (AC:H - on-path positioning or control of the resolver), and passive user interaction (UI:P - a victim must actually launch an Nmap scan). PR:N confirms no privileges are needed against the scanning host itself. No EPSS score and no KEV listing were provided, and no confirmed working exploit is referenced - so there is no public exploit identified at time of analysis and no evidence of active exploitation; these absences are not errors but they do lower real-world urgency. The vuln.today decision label is this_week (not act_now/emergency), which aligns with a patched, high-severity, non-weaponized flaw. The notable inversion of normal risk models: the 'victim' is the person running the scanner (attackers, pentesters, and defenders who run Nmap), and the 'attacker' is whoever controls or sits on-path to the DNS server being queried - so realistic exposure is highest for operators scanning hostile or attacker-influenced networks. Full confidentiality/integrity/availability impact (memory disclosure, execution hijack, crash) is claimed, but the AC:H + AT:P + UI:P combination means reliable code execution is far from trivial.

Exploit ScenarioDerived

A security analyst runs an Nmap scan (versions before 7.992) against a network where the attacker controls the DNS server being queried or can intercept traffic on-path. The attacker replies with precisely timed DNS responses paired with forged ICMP port-unreachable messages, causing DNS::ResolverImpl::handle_write to dereference an already-freed request object. The resulting use-after-free can crash the scan, leak scanner-process memory, or potentially hijack execution on the operator's machine; no confirmed public exploit is referenced, and reliable execution is constrained by the required timing.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 27, 2026

Use-after-free in Nmap's parallel DNS resolver (libnetutil/massdns.cc) in all versions before 7.992 allows an attacker who controls, or is on-path to, the DNS server a scan queries to crash the scan, disclose memory, or potentially hijack execution. Triggering requires the operator to run a scan that performs DNS resolution (Nmap does reverse-DNS lookups by default unless -n is used) and the attacker to deliver timed DNS responses combined with forged ICMP port-unreachable messages so the request object is freed and then re-dereferenced during the write-completion path. No public exploit code and no confirmed active exploitation (CISA KEV) were identified at time of analysis, no EPSS score was supplied, and the vendor has released 7.992 with the fix; the composite picture - remote, high attack complexity, attack requirements present, user-initiated scan - places this at this_week priority rather than an emergency.

RemediationAI

Vendor-released patch: Nmap 7.992 (or later). Upgrade every deployed Nmap binary - including copies embedded in container images, CI runners, and security tooling - to 7.992 and confirm the version with nmap --version; the fix is described in the changelog at https://nmap.org/changelog.html and can be reviewed in commits 37a95cb34ff4bdbb8527f58ab66bd1017fb7de5d and cd74c02e2f53d57ba19a9a63398ea7d3bc7cb942. Where upgrading is not immediately possible, the exploitable path requires DNS resolution during a scan, so invoking scans with -n to suppress reverse-DNS lookups removes the resolver interaction the issue depends on, at the cost of losing PTR hostname output in reports; note that -n does not protect any other DNS-dependent feature you continue to use, and the vendor's fixed release remains the only complete remedy. Because exploitation also requires control of or an on-path position to the queried DNS server, keeping scans pointed at resolvers on trusted network paths reduces exposure but should not be treated as a substitute for the 7.992 update. Refer to the VulnCheck advisory at https://www.vulncheck.com/advisories/nmap-before-7.992-use-after-free-via-dns-resolver-handle-write for the reporter's details.

Affected VersionsENISA

nmap 0 <7.992

Affected Packages

euvd nmap fix: 7.992

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 mass DNS subsystem in libnetutil/massdns.cc implements a nsock-based asynchronous resolver that multiplexes many outstanding queries across a std::list of dns_server entries, tracking each outstanding request through the request struct (id, status, first_server, and previously a cached curr_server pointer) and per-server in_process/to_process queues and records[] map. The weakness is CWE-416: a request object could be reached and dereferenced after it had already been freed, in the write-completion handling path that the sources identify as DNS::ResolverImpl::handle_write. The upstream fix (commits 37a95cb34ff4bdbb8527f58ab66bd1017fb7de5d and cd74c02e2f53d57ba19a9a63398ea7d3bc7cb942) removes the cached curr_server field from request, passes the dns_server explicitly into put_dns_packet_on_wire(), stores the server as nsock I/O descriptor user data via nsock_iod_set_udata() and retrieves it with nsock_iod_get_udata() at write time, and narrows the scope of the server-list iterator in deal_with_timedout_reads(). The practical effect is that the server association is no longer carried in a pointer whose lifetime can end before the write completes. Affected builds are all Nmap releases prior to 7.992 (CPE cpe:2.3:a:nmap:nmap:*:*:*:*:*:*:*:*), across platforms, since the resolver is shared code.

Know when Nmap gets its next vulnerability

  • 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 7.7 HIGH
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
vuln.today AI 7.5 HIGH

Network-delivered via DNS responses (AV:N) but needs on-path control and precise timing (AC:H); no target privileges (PR:N); victim must run a scan (UI:R); UAF yields memory disclosure, execution, and crash (C/I/A:H).

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

Nmap before 7.992 contains a use-after-free vulnerability in DNS::ResolverImpl::handle_write in libnetutil/massdns.cc that dereferences freed request objects after writes complete. Attackers controlling or on-path to a DNS server can send timed DNS responses with forged ICMP port-unreachable messages to crash scans, disclose memory, or hijack execution.

Executive ViewAI

Why It Matters

A use-after-free vulnerability in Nmap's DNS resolver (CVE-2026-137977) can be triggered when a user runs a scan with DNS resolution enabled, potentially allowing an attacker who controls the DNS server to crash the scan, disclose memory, or hijack execution. Leadership should prioritize this week because security teams commonly use Nmap for network assessments, and a compromised scan could lead to data leakage or lateral movement.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 58% exploitable
Prevalence
High
most widely deployed network scanner across security, sysadmin, and CI toolchains
Data Quality
4 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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

More in Nmap

View all
CVE-2013-4885 MEDIUM POC
6.8 Oct 26

The http-domino-enum-passwords.nse script in NMap before 6.40, when domino-enum-passwords.idpath is set, allows remote s

CVE-2019-11490 HIGH POC
7.8 Apr 24

An issue was discovered in Npcap 0.992. Rated high severity (CVSS 7.8), this vulnerability is low attack complexity. Pub

CVE-2018-15173 HIGH POC
7.5 Aug 08

Nmap through 7.70, when the -sV option is used, allows remote attackers to cause a denial of service (stack consumption

CVE-2026-58058 MEDIUM POC
6.9 Jun 28

Out-of-bounds reads and a process crash in Nmap through 7.99 can be triggered remotely by any host that is being scanned

CVE-2026-137978 HIGH
7.7 Nov 27

A use-after-free in Nmap's parallel DNS resolver (DNS::ResolverImpl::process_request in libnetutil/massdns.cc) affects N

CVE-2026-81406 HIGH
7.1 Nov 25

Memory exhaustion in Nmap's db2-das-info NSE script lets a malicious or spoofed DB2 Administration Server on a scanned h

CVE-2026-81405 HIGH
7.1 Nov 25

Memory exhaustion in the Nmap Scripting Engine's rpc.lua library (Nmap before 7.992) lets a malicious ONC-RPC service on

CVE-2026-81408 HIGH
7.1 Nov 25

Memory exhaustion in Nmap's NSE scripting engine (versions before 7.992) lets a hostile DRDA service consume unbounded m

CVE-2026-81412 HIGH
7.1 Nov 25

Memory exhaustion and prolonged CPU spin in Nmap's NSE MSRPC library (nselib/msrpctypes.lua) affects Nmap releases befor

CVE-2026-81411 HIGH
7.1 Nov 25

A malformed RDP handshake response can hang the Nmap scanner process at 100% CPU indefinitely, because the rdp.lua NSE l

CVE-2026-81415 MEDIUM
6.0 Nov 25

Nmap releases before 7.992 can be driven into a permanent 100% CPU hang while running the NSE script tn3270-screen.nse (

CVE-2026-81414 MEDIUM
6.0 Nov 25

Memory exhaustion and quadratic CPU consumption in Nmap before 7.992 can be induced through the NSE dns.lua library when

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