CVEvulnerability
CVE-2026-58058
6.9 MEDIUM
Official page ↗
- Status
- Analyzed
- Published
- 2026-06-28
- Last modified
- 2026-10-25
- Assigner
- [email protected]
- CVSS 4.0 ([email protected])
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- CVSS 3.1 ([email protected])
- 6.5 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
- Weaknesses
- CWE-191
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.
Affected configurations
• nmap nmap (<= 7.99)
Related
Weakness · CWE (1)
- CWE-191 Integer Underflow (Wrap or Wraparound) weakness
References
- https://github.com/bikini/exploitarium/tree/main/nmap-ipv6-extlen-wrap-poc Broken Link
- https://github.com/nmap/nmap/commit/bb6754e76bb1686315008e1aa1c40202a513fb83 Patch
- https://nmap.org/changelog.html Patch, Release Notes
- https://www.vulncheck.com/advisories/nmap-integer-underflow-in-ipv6-extension-header-parsing Patch, Third Party Advisory