Use-after-free in Nmap DNS resolver handle_write
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-416 and the CVSS impact.
Summary
Nmap before 7.992 contains a use-after-free flaw (CWE-416) in the DNS resolver's handle_write function in libnetutil/massdns.cc, which dereferences request objects after their writes complete. An attacker who controls or is on the path to a DNS server can send timed DNS responses with forged ICMP port-unreachable messages to crash scans, disclose memory, or hijack execution. The CVSS 4.0 vector requires user interaction and high attack complexity.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade Nmap to version 7.992 or later, which fixes this issue. The sources list no advisory identifier for this fix.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
- Fix · CNA Nmap (Nmap) Fixed in 7.992
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Nmap 7.992
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2026-99327 Use-after-free in Nmap parallel DNS resolver can crash scansPriority LOW 36
- TI-2026-99328 Predictable NSE Lua seed in Nmap leaks heap addressesPriority LOW 30
Timeline
- 2026-11-27 Threatist record created from CVE-2026-137977
- 2026-11-27 Alias added: GHSA-cj2r-gmph-p2xw
References
More Nmap vulnerabilities
- TI-2026-41812 Nmap - Integer Underflow in IPv6 Extension Header Parsing CVSS 4.0MEDIUM 6.9
- TI-2018-10857 Nmap through 7.70, when the -sV option is used, allows remote attackers to cause a denial… CVSS 3.0HIGH 7.5
- TI-2013-04289 The http-domino-enum-passwords.nse script in NMap before 6.40, when… CVSS 2.0MEDIUM 6.8
- TI-2017-13767 nse_libssh2.cc in Nmap 7.70 is subject to a denial of service condition due to a double… CVSS 3.0HIGH 7.5
- TI-2026-98358 Memory exhaustion in Nmap db2-das-info script via packet length CVSS 4.0HIGH 7.1
- TI-2026-98363 Infinite loop in Nmap rdp.lua library hangs scans on malicious RDP servers CVSS 4.0HIGH 7.1
Sources
- CVE-2026-137977 · CVE Program
- CVE-2026-137977 · NVD
- FIRST EPSS
- GHSA-cj2r-gmph-p2xw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences