CVE-2026-58058
MEDIUM
6.5
CVSS 3.1
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.
Metadata
Severity & Metrics
6.5
MEDIUM CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Affected products (1)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| Nmap | Nmap | — | 0 ≤ 7.99 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-191 | cna | Integer Underflow (Wrap or Wraparound) |
CVSS scores (2)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 6.9 | MEDIUM | 4.0 | cna | 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 |
| 6.5 | MEDIUM | 3.1 | cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
References (4)
- Proof of Concept https://github.com/bikini/exploitarium/tree/main/nmap-ipv6-extlen-wrap-poc
- Fix commit (dev tree) https://github.com/nmap/nmap/commit/bb6754e76bb1686315008e1aa1c40202a513fb83
- Nmap Change Log https://nmap.org/changelog.html
- VulnCheck Advisory: Nmap - Integer Underflow in IPv6 Extension Header Parsing https://www.vulncheck.com/advisories/nmap-integer-underflow-in-ipv6-extension-header-parsing