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

CVE-2024-24790 affects 333 listed versions of Go, Traefik in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
2%EPSS (next 30 days)
5 June 2024published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Go

176 of 250 listed versions are affected. Fixed in 1.22.4, 1.21.11. The newest release, 1.27.4, is not affected.

1.22.3 1.22.2 1.22.1 1.22.0 1.21.10 1.21.9 1.21.8 1.21.7 1.21.6 1.21.5 1.21.4 1.21.3 1.21.2 1.21.1 1.21.0 1.21.0-rc3 1.20.14 1.20.13 1.20.12 1.20.11 1.20.10 1.20.9 1.20.8 1.20.7 1.20.6 1.20.5 1.20.4 1.20.3 1.20.2 1.20.1 1.20.0 1.19.13 1.19.12 1.19.11 1.19.10 1.19.9 1.19.8 1.19.7 1.19.6 1.19.5 1.19.4 1.19.3 1.19.2 1.19.1 1.19.0 1.19.0-rc2 1.18.10 1.18.9 1.18.8 1.18.7 1.18.6 1.18.5 1.18.4 1.18.3 1.18.2 1.18.1 1.18 1.17.13 1.17.12 1.17.11 and 116 more

Traefik

157 of 250 listed versions are affected. Fixed in 3.0.2, 2.11.4. The newest release, 3.8.0, is not affected.

3.0.1 3.0.0 3.0.0-rc5 3.0.0-rc4 3.0.0-rc3 3.0.0-rc2 3.0.0-rc1 2.10.7 2.10.6 2.10.5 2.10.4 2.10.3 2.10.2 2.10.1 2.10.0 2.10.0-rc2 2.10.0-rc1 2.9.10 2.9.9 2.9.8 2.9.7 2.9.6 2.9.5 2.9.4 2.9.3 2.9.2 2.9.1 2.9.0-rc5 2.9.0-rc4 2.9.0-rc3 2.9.0-rc2 2.9.0-rc1 2.8.8 2.8.7 2.8.6 2.8.5 2.8.4 2.8.3 2.8.2 2.8.1 2.8.0 2.7.3 2.7.2 2.7.1 2.7.0 2.6.7 2.6.6 2.6.5 2.6.4 2.6.3 2.6.2 2.6.1 2.6.0 2.5.7 2.5.6 2.5.5 2.5.4 2.5.3 2.5.2 2.5.1 and 97 more

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by Go on 5 June 2024. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2024-24790 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.