Home › Vulnerabilities › Nmap
Nmap Flaws Include Two High-Severity DNS Resolver Use-After-Free Bugs and an NSE Randomness Weakness
NVD published three vulnerabilities in Nmap versions before 7.992 on 2026-11-27. Two are HIGH-severity use-after-free flaws in the DNS resolver, and one is a MEDIUM information disclosure issue in the Nmap Scripting Engine.
What to look into
- 3 vulnerabilities in Nmap: 2 high, 1 medium (CVSS up to 7.7).
- None of them is known to be exploited yet.
- Start with CVE-2026-137977 (7.7 high): Nmap Use-After-Free Vulnerability in DNS Resolver. An attacker without an account can exploit this over the network if a user views or visits something, but only under specific conditions.
- 3 of 3 can be attacked over the network without logging in.
- Kinds of flaws: Use After Free (×2).
Key points
- CVE-2026-137977 and CVE-2026-137978 are HIGH (CVSS 7.7) use-after-free flaws in the DNS resolver in libnetutil/massdns.cc
- CVE-2026-137978 requires an attacker answering for at least two configured DNS servers, and may enable code execution per the record
- CVE-2026-137979 is a MEDIUM (CVSS 5.3) NSE flaw that can weaken ASLR during -sC scans
- All three affect Nmap versions before 7.992
Three vulnerabilities in the Nmap network scanner were published together by NVD on 2026-11-27. All three affect versions before 7.992.
DNS resolver flaws
CVE-2026-137977 and CVE-2026-137978 are both rated HIGH with a CVSS score of 7.7. Both are use-after-free flaws in the DNS code in libnetutil/massdns.cc. The first, in DNS::ResolverImpl::handlewrite, dereferences freed request objects after writes complete. According to the record, an attacker who controls or is on the path to a DNS server could use timed DNS responses and forged ICMP port-unreachable messages to crash a scan, disclose memory, or hijack execution.
The second, in DNS::ResolverImpl::processrequest, frees requests that are still referenced when scheduling resumes after DNS server disconnects. The record says an attacker answering for at least two configured DNS servers can force a disconnect and send a precisely timed response to crash the scan, and that this could possibly enable code execution.
Scripting engine weakness
CVE-2026-137979 is a MEDIUM (CVSS 5.3) information disclosure issue. The Nmap Scripting Engine's nsemain.lua does not explicitly seed Lua's math.random generator. Per the record, malicious scanned hosts can observe math.random-derived values in NSE traffic during -sC scans, brute-force the seed, and recover a heap address that weakens ASLR.
The records do not state a workaround, and they do not mention any known exploitation of these flaws.
What to do
- Update Nmap to version 7.992 or later, since the records describe versions before 7.992 as affected
The 3 vulnerabilities
- CVE-2026-137977 7.7 Nmap Use-After-Free Vulnerability in DNS Resolver
- CVE-2026-137978 7.7 Nmap Use-After-Free Vulnerability in DNS Resolver
- CVE-2026-137979 5.3 Nmap before 7.992 contains an information disclosure vulnerability in the Nmap Scripting Engine because nsemain.lua does not explicitly seed Lua's math.random generator. Malicious scanned hosts can observe math.random-derived values in NSE…
Frequently asked questions
How many Nmap vulnerabilities were published on November 27, 2026?
3 vulnerabilities: 2 high, 1 medium, with CVSS scores up to 7.7.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-137977 (CVSS 7.7): Nmap Use-After-Free Vulnerability in DNS Resolver.