Nmap through 7.99 does not keep the IPv6 extension-header walk within the captured packet in ipv6_get_data_primitive (libnetutil/netutil.cc), so the pointer advances past the buffer and the remaining-length computation underflows to a large value
Affects nmapSource GCVE Database
Public exploit available (Exploit-DB) · CVSS 6.5 Medium.
Data as of 24 Nov 2026, 21:16 UTC
- EPSS
- 1.4% chance of exploitation in 30 days – higher than 73% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:LExploitation evidence
t = 0 is the CVE’s publication on cve.org
Disclosed: evidence found.
CVE published 28 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
Timeline
CVE published
on cve.org
, t = 0
First Exploit-DB entry (opens in a new tab)
Nmap 7.99 - 'ipv6_get_data_primitive' IPv6 Extension Header Integer Underflow (PoC)
, 50 days after disclosure
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10nmappkg:deb/ubuntu/nmap?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSnmappkg:deb/ubuntu/nmap?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10nmappkg:deb/ubuntu/nmap?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSnmappkg:deb/ubuntu/nmap?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSnmappkg:deb/ubuntu/nmap?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSnmappkg:deb/ubuntu/nmap?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Nmap through 7.99 does not keep the IPv6 extension-header walk within the captured packet in ipv6_get_data_primitive (libnetutil/netutil.cc), so the pointer advances past the buffer and the remaining-length computation underflows to a large value. A scanned target or on-path attacker returning a crafted IPv6 response with a truncated extension header can trigger out-of-bounds reads and a crash during raw IPv6 scans.
References
- ubuntu.com/security/CVE-2026-58058 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-58058 (opens in a new tab)
- github.com/bikini/exploitarium/tree/main/nmap-ipv6-extlen-wrap-poc (opens in a new tab)
- github.com/nmap/nmap/commit/bb6754e76bb1686315008e1aa1c40202a513fb83 (opens in a new tab)
- nmap.org/changelog.html (opens in a new tab)
- vulncheck.com/advisories/nmap-integer-underflow-in-ipv6-extension-header-parsing (opens in a new tab)