CVE-2026-137977 Nmap before 7.992 Use-After-Free via DNS Resolver handle_write

Published Updated

Attackers controlling DNS responses can crash Nmap scans, leak memory, or hijack execution via a use-after-free in DNS resolver handling.

CVSS score

High

7.7/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
7.992
Attack path
Over the internet
No login, a user must click or open something

What is CVE-2026-137977?

CVE-2026-137977 is a high-severity use after free vulnerability in Nmap, published on 27 Nov 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-416

How severe is CVE-2026-137977?

CVE-2026-137977 scores 7.7 out of 10 under CVSS 4.0, which is high severity. It was scored by VulnCheck.

Attack vector
Network
Attack complexity
High
Attack requirements
Present
Privileges required
None
User interaction
Passive
Confidentiality
High
Integrity
High
Availability
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

Which versions are affected by CVE-2026-137977?

An affected version is exposed as installed. No special setting or call is needed.

How do I fix CVE-2026-137977?

Upgrade Nmap to 7.992 or later. The advisory says that version fixes it.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-137977 being exploited?

There is no known exploitation of CVE-2026-137977 in the wild and no public exploit code.

Sources

Also known as AZL-116360, DEBIAN-CVE-2026-137977, DHI-jahi-f2ng-kfiw-2gvt, ECHO-2b2a-5fb6-051b, GHSA-cj2r-gmph-p2xw.

Is CVE-2026-137977 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free