Nmap up to 7.99 libnetutil/netutil.cc integer underflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.6 | $0-$5k | 7.02 |
Summary
A vulnerability was found in Nmap up to 7.99. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file libnetutil/netutil.cc. Executing a manipulation can lead to integer underflow. This vulnerability is handled as CVE-2026-58058. The attack can be executed remotely. Additionally, an exploit exists. It is recommended to upgrade the affected component.
Details
A vulnerability was found in Nmap up to 7.99. It has been declared as critical. This vulnerability affects some unknown processing of the file libnetutil/netutil.cc. The manipulation with an unknown input leads to a integer underflow vulnerability. The CWE definition for the vulnerability is CWE-191. The product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:
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.
The weakness was released by Himanshu Anand. The advisory is available at github.com. This vulnerability was named CVE-2026-58058 since 06/28/2026. The exploitation appears to be easy. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. Technical details and also a public exploit are known.
It is possible to download the exploit at github.com. It is declared as proof-of-concept.
Upgrading eliminates this vulnerability. The upgrade is hosted for download at nmap.org. Applying the patch bb6754e76bb1686315008e1aa1c40202a513fb83 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at EUVD (EUVD-2026-39978). If you want to get best quality of vulnerability data, you may have to visit VulDB.
Product
Type
Name
Version
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 7.5
- 7.6
- 7.7
- 7.8
- 7.9
- 7.10
- 7.11
- 7.12
- 7.13
- 7.14
- 7.15
- 7.16
- 7.17
- 7.18
- 7.19
- 7.20
- 7.21
- 7.22
- 7.23
- 7.24
- 7.25
- 7.26
- 7.27
- 7.28
- 7.29
- 7.30
- 7.31
- 7.32
- 7.33
- 7.34
- 7.35
- 7.36
- 7.37
- 7.38
- 7.39
- 7.40
- 7.41
- 7.42
- 7.43
- 7.44
- 7.45
- 7.46
- 7.47
- 7.48
- 7.49
- 7.50
- 7.51
- 7.52
- 7.53
- 7.54
- 7.55
- 7.56
- 7.57
- 7.58
- 7.59
- 7.60
- 7.61
- 7.62
- 7.63
- 7.64
- 7.65
- 7.66
- 7.67
- 7.68
- 7.69
- 7.70
- 7.71
- 7.72
- 7.73
- 7.74
- 7.75
- 7.76
- 7.77
- 7.78
- 7.79
- 7.80
- 7.81
- 7.82
- 7.83
- 7.84
- 7.85
- 7.86
- 7.87
- 7.88
- 7.89
- 7.90
- 7.91
- 7.92
- 7.93
- 7.94
- 7.95
- 7.96
- 7.97
- 7.98
- 7.99
License
Website
- Product: https://github.com/nmap/nmap/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 6.9VulDB Meta Temp Score: 6.6
VulDB Base Score: 7.3
VulDB Temp Score: 6.6
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 6.5
CNA Vector (VulnCheck): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Integer underflowCWE: CWE-191 / CWE-189
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Access: Public
Status: Proof-of-Concept
Download: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: nmap.org
Patch: bb6754e76bb1686315008e1aa1c40202a513fb83
Timeline
06/28/2026 Advisory disclosed06/28/2026 CVE reserved
06/28/2026 VulDB entry created
06/28/2026 VulDB entry last update
Sources
Product: github.comAdvisory: github.com
Researcher: Himanshu Anand
Status: Confirmed
CVE: CVE-2026-58058 (🔒)
GCVE (CVE): GCVE-0-2026-58058
GCVE (VulDB): GCVE-100-374506
EUVD: 🔒
scip Labs: https://www.scip.ch/en/?labs.20130625
Entry
Created: 06/28/2026 08:14Updated: 06/28/2026 12:50
Changes: 06/28/2026 08:14 (81), 06/28/2026 12:50 (1)
Complete: 🔍
Cache ID: 216::103
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.