{"id":"CVE-2026-58058","published":"2026-06-28T01:32:59Z","modified":"2026-06-29T14:53:48Z","title":"Nmap - Integer Underflow in IPv6 Extension Header Parsing","vendor":"Nmap","product":"Nmap","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01454,"percentile":0.73727,"provenance":"source"},"cwes":[{"id":"CWE-191","name":"Integer Underflow (Wrap or Wraparound)"}],"references":[{"url":"https://github.com/bikini/exploitarium/tree/main/nmap-ipv6-extlen-wrap-poc","tags":["exploit","third-party-advisory"]},{"url":"https://github.com/nmap/nmap/commit/bb6754e76bb1686315008e1aa1c40202a513fb83","tags":["patch"]},{"url":"https://nmap.org/changelog.html","tags":["release-notes"]},{"url":"https://www.vulncheck.com/advisories/nmap-integer-underflow-in-ipv6-extension-header-parsing","tags":["third-party-advisory"]}],"priority":{"score":24.3,"factors":[{"name":"EPSS percentile","points":14.75},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.55}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2026-08-17"},"first":{"date":"2026-08-17","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/52647"},"provenance":"source"},"vendorSlug":"nmap","affectedVersions":[{"vendor":"Nmap","product":"Nmap","versions":["<= 7.99"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-29T14:49:07.833303Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-39978","exploited":false,"provenance":"source"},"exploits":[{"id":52647,"url":"https://www.exploit-db.com/exploits/52647","title":"Nmap 7.99 - 'ipv6_get_data_primitive' IPv6 Extension Header Integer Underflow (PoC)","date":"2026-08-17","verified":false,"provenance":"source"}],"exploitRefs":["https://github.com/bikini/exploitarium/tree/main/nmap-ipv6-extlen-wrap-poc"]}