[GO-2024-2887] Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses in net/netip

Severity Critical
Affected Packages 2
Fixed Packages 2
CVEs 1

The various Is methods (IsPrivate, IsLoopback, etc) did not work as expected for
IPv4-mapped IPv6 addresses, returning false for addresses which would return
true in their traditional IPv4 forms.

Package Affected Version
pkg:golang/net/netip >= 1.22.3, < 1.21.11
pkg:golang/net/netip >= 1.22.3, < 1.22.4
Package Fixed Version
pkg:golang/net/netip = 1.21.11
pkg:golang/net/netip = 1.22.4
Type Package URL Namespace Name / Product Version Distribution / Platform Arch Patch / Fix
Fixed pkg:golang/net/netip net netip = 1.21.11
Affected pkg:golang/net/netip net netip >= 1.22.3 < 1.21.11
Fixed pkg:golang/net/netip net netip = 1.22.4
Affected pkg:golang/net/netip net netip >= 1.22.3 < 1.22.4
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories Exploits PoC Pubblication Date Modification Date
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories PoC Pubblication Date Modification Date
Loading...