CVE-2026-58058
JSON

6.9medium

Nmap - Integer Underflow in IPv6 Extension Header Parsing

Severity
6.9medium CVSS:4.0 by VulnCheck
Exploit likelihood
1.37% (higher than 72% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

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

Product or packageVersionsReported by
Nmap Nmapup to 7.99CVE List, NVD

All scores

VulnCheck6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
VulnCheck6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

Classification

CWE-191

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Nmap hasta la versión 7.99 no mantiene el recorrido del encabezado de extensión IPv6 dentro del paquete capturado en ipv6_get_data_primitive (libnetutil/netutil.cc), por lo que el puntero avanza más allá del búfer y el cálculo de la longitud restante sufre un desbordamiento negativo a un valor grande. Un objetivo escaneado o un atacante en la ruta que devuelve una respuesta IPv6 manipulada con un encabezado de extensión truncado puede desencadenar lecturas fuera de límites y un fallo durante los escaneos IPv6 sin procesar.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-58058 changed 2026-06-29CVE Terms of Use
NVDCVE-2026-58058 changed 2026-10-25Public domain