Integer Underflow (Wrap or Wraparound) Affecting nmap package, versions [0,7.991)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.37% (70th 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-UNMANAGED-NMAP-17669878
  • published29 Jun 2026
  • disclosed28 Jun 2026
  • creditHimanshu Anand

Introduced: 28 Jun 2026

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

How to fix?

Upgrade nmap to version 7.991 or higher.

Overview

Affected versions of this package are vulnerable to Integer Underflow (Wrap or Wraparound) in the ipv6_get_data_primitive process. An attacker can cause out-of-bounds reads and application crashes by sending a crafted IPv6 response with a truncated extension header during raw IPv6 scans.

CVSS Base Scores

version 4.0
version 3.1