CVE-2026-58058
Nmap - Integer Underflow in IPv6 Extension Header Parsing
- State
- Published
- Severity
- 6.9 Medium
- Published
- Jun 28, 2026
- Updated
- Jun 29, 2026
- Reserved
- Jun 28, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | 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 | VulnCheck |
| 3.1 | 6.5 Medium | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L | VulnCheck |
Weaknesses
- CWE-191 Integer Underflow (Wrap or Wraparound)
Affected Products
| Product | Versions |
|---|---|
NmapNmap |
|
References
- Proof of Conceptexploitthird-party-advisory
- Fix commit (dev tree)patch
- Nmap Change Logrelease-notes
- VulnCheck Advisory: Nmap - Integer Underflow in IPv6 Extension Header Parsingthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.