CVE-2026-58058
Nmap through 7.99 does not keep the IPv6 extension-header walk …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/bikini/exploitarium/tree/main/nmap-ipv6-extlen-wrap-poc
- github.com/nmap/nmap/commit/bb6754e76bb1686315008e1aa1c40202a513fb83
- nmap.org/changelog.html
- www.vulncheck.com/advisories/nmap-integer-underflow-in-ipv6-extension-header-parsing
- nvd.nist.gov/vuln/detail/CVE-2026-58058
- cve.org/CVERecord?id=CVE-2026-58058
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.