Integer Underflow Affecting nmap package, versions <7.991-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.37% (73rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-WOLFILATEST-NMAP-20751430
  • published10 Oct 2026
  • disclosed28 Jun 2026

Introduced: 28 Jun 2026

CVE-2026-58058  (opens in a new tab)
CWE-191  (opens in a new tab)

How to fix?

Upgrade Wolfi nmap to version 7.991-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nmap package and not the nmap package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1