CVE-2026-58058

Source
https://cve.org/CVERecord?id=CVE-2026-58058
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58058.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-58058
Downstream
AZL (1)
CGA (4)
CLSA (2)
DEBIAN (1)
ECHO (1)
MGASA (1)
MINI (1)
OESA (5)
SUSE (4)
UBUNTU (1)
Related
Published
2026-06-28T01:32:59Z
Modified
2026-10-28T11:18:10Z
Severity
  • 6.9 (Medium) CVSS_V4 - 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 Calculator
Summary
Nmap - Integer Underflow in IPv6 Extension Header Parsing
Details

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.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-191"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58058.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "last_affected":  "7.99"
                        }
                    ],
                    "source":  "AFFECTED_FIELD",
                    "strategy":  "StandardRange"
                }
            ]
        },
        {
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "last_affected":  "7.99"
                        }
                    ],
                    "source":  "CPE_FIELD",
                    "strategy":  "CPEApplicability"
                }
            ]
        },
        {
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "last_affected":  "7.99"
                        }
                    ],
                    "source":  "DESCRIPTION"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/nmap/nmap

Affected ranges

Type
GIT
Repo
https://github.com/nmap/nmap
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "fixed":  "bb6754e76bb1686315008e1aa1c40202a513fb83"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58058.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "145508270917644213296583443907588523399",
                "96563822267243935670484602926712022871",
                "124043627670187252626341567966163749908",
                "281406455622579882127987983584235823092",
                "240658403601090996670433758407496718041",
                "322081025817709380104446581397967329226",
                "24930405134028693560859293211274131987",
                "143362629384587272283727625953474409106"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-58058-02ef1481",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/nmap/nmap/commit/bb6754e76bb1686315008e1aa1c40202a513fb83",
        "target":  {
            "file":  "libnetutil/netutil.cc"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "137564203164912028897199334127478259627",
            "length":  529
        },
        "id":  "CVE-2026-58058-95973e34",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/nmap/nmap/commit/bb6754e76bb1686315008e1aa1c40202a513fb83",
        "target":  {
            "file":  "libnetutil/netutil.cc",
            "function":  "ipv6_get_data_primitive"
        }
    }
]
vanir_signatures_modified
"2026-10-28T11:18:10Z"