Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl resolver or gain on-path position
-
DeliveryWait for victim to launch Nmap scan
-
ExploitSend timed DNS responses with forged ICMP unreachable
-
ExecutionTrigger use-after-free in DNS::ResolverImpl::handle_write
-
PersistDereference freed request object
-
ImpactLeak 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
The http-domino-enum-passwords.nse script in NMap before 6.40, when domino-enum-passwords.idpath is set, allows remote s
An issue was discovered in Npcap 0.992. Rated high severity (CVSS 7.8), this vulnerability is low attack complexity. Pub
Nmap through 7.70, when the -sV option is used, allows remote attackers to cause a denial of service (stack consumption
Out-of-bounds reads and a process crash in Nmap through 7.99 can be triggered remotely by any host that is being scanned
A use-after-free in Nmap's parallel DNS resolver (DNS::ResolverImpl::process_request in libnetutil/massdns.cc) affects N
Memory exhaustion in Nmap's db2-das-info NSE script lets a malicious or spoofed DB2 Administration Server on a scanned h
Memory exhaustion in the Nmap Scripting Engine's rpc.lua library (Nmap before 7.992) lets a malicious ONC-RPC service on
Memory exhaustion in Nmap's NSE scripting engine (versions before 7.992) lets a hostile DRDA service consume unbounded m
Memory exhaustion and prolonged CPU spin in Nmap's NSE MSRPC library (nselib/msrpctypes.lua) affects Nmap releases befor
A malformed RDP handshake response can hang the Nmap scanner process at 100% CPU indefinitely, because the rdp.lua NSE l
Nmap releases before 7.992 can be driven into a permanent 100% CPU hang while running the NSE script tn3270-screen.nse (
Memory exhaustion and quadratic CPU consumption in Nmap before 7.992 can be induced through the NSE dns.lua library when
EUVD-2026-137452
GHSA-cj2r-gmph-p2xw
NVD
CVE.org
EPSS
Exploit-DB