What’s Vulnerable › Vulnerabilities

CVE-2024-24790: Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses in net/netip

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Go 1.21.11, 1.22.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-24790 or the next vulnerability affects your stack