CVE-2026-58058
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.
Severity
MEDIUM
CVSS v3
6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L · source cna
CVSS v4
6.9
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N · source cna
Exploit chance (EPSS)
1.454%
chance of exploitation in the next 30 days
higher than 73.9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 1
Weakness
- CWE-191: Integer Underflow (Wrap or Wraparound)
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-06-29 |
Timeline
- 2026-06-28Published by the CNA01:32 UTC
- 2026-06-29CISA SSVC decision recorded1 day after publication
- 2026-08-17First Exploit-DB entry (EDB-ID 52647)50 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 52647 | dos | multiple | 2026-08-17 | no |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| nmap nmap | through 7.99no fix listed | not listed |
References
- 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
- https://github.com/bikini/exploitarium/tree/main/nmap-ipv6-extlen-wrap-poc
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-58058'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-58058'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-58058'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-58058'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).