cve.bz

CVE-2026-58058 nmap nmap: Integer Underflow (Wrap or Wraparound)

6.9 mediumExploitEPSS 1.5%Fix available

Medium (6.9) in nmap nmap. EPSS 1.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

6.9 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-06-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-191 Integer Underflow (Wrap or Wraparound)
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-58058 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-58058?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-58058?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-58058 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Nmapthrough 7.99

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13nmapno fix listedDEBIAN-CVE-2026-58058
Debian14nmap7.99+dfsg-2DEBIAN-CVE-2026-58058
Ubuntu14.04:LTS, 16.04:LTS, 18.04:LTS and 6 morenmapno fix listedUBUNTU-CVE-2026-58058
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP7nmap7.92-150600.9.3.1SUSE-SU-2026:3340-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0nmap7.92-160000.3.1SUSE-SU-2026:22814-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5nmap6.46-3.9.1SUSE-SU-2026:3333-1
SUSELinux Micro Extras 6.2nmap7.92-160000.3.1SUSE-SU-2026:22739-1
Azure Linux3nmap7.95-4AZL-91391

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat rates this flaw as Moderate rather than the AI-assigned Important severity. The Aegis AI-Bot rated UI:N (no user interaction), but nmap is a command-line scanning tool that an operator must manually invoke — initiating a scan is user interaction per the CVSS definition of UI:R. Correcting UI:N to UI:R reduces the CVSS from 7.5 to 6.5, aligning with the upstream CVEORG assessment. The vulnerability requires a scanned target or on-path attacker to return a crafted IPv6 response with a truncated extension header during a raw IPv6 scan.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10nmapFix deferred
Red Hat Enterprise Linux 6nmapFix deferred
Red Hat Enterprise Linux 7nmapFix deferred
Red Hat Enterprise Linux 8nmapFix deferred
Red Hat Enterprise Linux 9nmapFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-58058.

Public exploits

References

Check your stackJSON