CVE-2026-58058
CVE-2026-58058 is a medium-severity vulnerability in Nmap with a CVSS 3.x base score of 6.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-191.
Key facts
- Severity: Medium (CVSS 3.x base score 6.5)
- CVSS v4: 6.9
- EPSS exploit prediction: 0% (20th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-191
- Affected product: Nmap
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2026-58058?
- 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.
- How severe is CVE-2026-58058?
- CVE-2026-58058 has a CVSS 3.x base score of 6.5, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity none, and availability low.
- Is CVE-2026-58058 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (20th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-58058?
- CVE-2026-58058 affects Nmap. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-58058?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2026-58058 published?
- CVE-2026-58058 was published on 2026-06-28 and last updated on 2026-06-30.
References
- https://github.com/bikini/exploitarium/tree/main/nmap-ipv6-extlen-wrap-poc
- https://github.com/nmap/nmap/commit/bb6754e76bb1686315008e1aa1c40202a513fb83
- https://nmap.org/changelog.html
- https://www.vulncheck.com/advisories/nmap-integer-underflow-in-ipv6-extension-header-parsing
Affected products (1)
- cpe:2.3:a:nmap:nmap:*:*:*:*:*:*:*:*
More vulnerabilities in Nmap
- CVE-2017-18594 — High (CVSS 7.5): nse_libssh2.cc in Nmap 7.70 is subject to a denial of service condition due to a double free when an SSH connection…
- CVE-2018-15173 — High (CVSS 7.5): Nmap through 7.70, when the -sV option is used, allows remote attackers to cause a denial of service (stack consumption…
- CVE-2013-4885 — Medium (CVSS 6.8): The http-domino-enum-passwords.nse script in NMap before 6.40, when domino-enum-passwords.idpath is set, allows remote…
- CVE-2018-1000161 — Medium (CVSS 5.7): nmap version 6.49BETA6 through 7.60, up to and including SVN revision 37147 contains a Directory Traversal…
Other CWE-191 (Integer Underflow) vulnerabilities
- CVE-2007-0063 — Critical (CVSS 10.0): Integer underflow in the DHCP server in EMC VMware Workstation before 5.5.5 Build 56455 and 6.x before 6.0.1 Build…
- CVE-2026-53176 — Critical (CVSS 9.8): In the Linux kernel, the following vulnerability has been resolved: IB/isert: Reject login PDUs shorter than…
- CVE-2026-37534 — Critical (CVSS 9.8): Integer underflow vulnerability in Open-SAE-J1939 thru commit b6caf884df46435e539b1ecbf92b6c29b345bdfe (2025-11-30) in…
- CVE-2025-52471 — Critical (CVSS 9.8): ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. An integer underflow vulnerability has been…
- CVE-2025-29909 — Critical (CVSS 9.8): CryptoLib provides a software-only solution using the CCSDS Space Data Link Security Protocol - Extended Procedures…
- CVE-2024-47606 — Critical (CVSS 9.8): GStreamer is a library for constructing graphs of media-handling components. An integer underflow has been detected in…