Integer Underflow Affecting nmap package, versions <7.95+dfsg-3+e1


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-ECHOLATEST-NMAP-18674659
  • published12 Aug 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 Echo:latest nmap to version 7.95+dfsg-3+e1 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 Echo. See How to fix? for Echo:latest 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