Vulnerability · Published Jun 5, 2024 · Assigned by Go

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

Critical 9.8

In plain English

A critical-severity security flaw in net/netip from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)2.0%top 19.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8delve1.21.2-3.module_el8.10.0+3760+4dd778f9ALSA-2024:4237
AlmaLinux:9git-lfs3.6.1-1.el9ALSA-2025:7256
AlmaLinux:8go-toolset1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9go-toolset1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8golang1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9golang1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8golang-bin1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9golang-bin1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8golang-docs1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9golang-docs1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8golang-misc1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9golang-misc1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8golang-src1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9golang-src1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8golang-tests1.21.11-1.module_el8.10.0+3863+bb82df69ALSA-2024:4237
AlmaLinux:9golang-tests1.21.11-1.el9_4ALSA-2024:4212
AlmaLinux:8grafana9.2.10-17.el8_10ALSA-2024:5291
AlmaLinux:9grafana10.2.6-4.el9ALSA-2024:9115
AlmaLinux:8grafana-selinux9.2.10-17.el8_10ALSA-2024:5291
AlmaLinux:9grafana-selinux10.2.6-4.el9ALSA-2024:9115
Alpine:v3.20go1.22.4-r0ALPINE-CVE-2024-24790
Alpine:v3.21go1.22.4-r0ALPINE-CVE-2024-24790
Alpine:v3.22go1.22.4-r0ALPINE-CVE-2024-24790
Alpine:v3.23go1.22.4-r0ALPINE-CVE-2024-24790
Alpine:v3.24go1.22.4-r0ALPINE-CVE-2024-24790
Debian:12golang-1.19no fix listedDEBIAN-CVE-2024-24790
Gostdlib1.21.11, 1.22.4GO-2024-2887
Rocky Linux:8delve0:1.21.2-3.module+el8.10.0+1814+f68f8a63RLSA-2024:4237
Rocky Linux:8delve0:1.22.1-1.module+el8.10.0+1879+0cb86608RLSA-2024:8876
Rocky Linux:9git-lfs0:3.6.1-1.el9RLSA-2025:7256
Rocky Linux:8go-toolset0:1.22.7-1.module+el8.10.0+1879+0cb86608RLSA-2024:8876
Rocky Linux:8go-toolset0:1.21.11-1.module+el8.10.0+1831+fc70fba6RLSA-2024:4237
Rocky Linux:8golang0:1.22.7-1.module+el8.10.0+1879+0cb86608RLSA-2024:8876
Rocky Linux:8golang0:1.21.11-1.module+el8.10.0+1831+fc70fba6RLSA-2024:4237
Rocky Linux:9golang0:1.21.11-1.el9_4RLSA-2024:4212
Rocky Linux:8grafana0:9.2.10-17.el8_10RLSA-2024:5291
Ubuntu:22.04:LTSgolang-1.17no fix listedUBUNTU-CVE-2024-24790
Ubuntu:22.04:LTSgolang-1.181.18.1-1ubuntu1.2USN-7109-1
Ubuntu:22.04:LTSgolang-1.181.18.1-1ubuntu1.2UBUNTU-CVE-2024-24790
Ubuntu:22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2024-24790
Ubuntu:22.04:LTSgolang-1.211.21.1-1~ubuntu22.04.3USN-6886-1
Ubuntu:22.04:LTSgolang-1.211.21.1-1~ubuntu22.04.3UBUNTU-CVE-2024-24790
Ubuntu:24.04:LTSgolang-1.211.21.9-1ubuntu0.1USN-6886-1
Ubuntu:24.04:LTSgolang-1.211.21.9-1ubuntu0.1UBUNTU-CVE-2024-24790
Ubuntu:22.04:LTSgolang-1.221.22.2-2~22.04.1UBUNTU-CVE-2024-24790
Ubuntu:22.04:LTSgolang-1.221.22.2-2~22.04.1USN-6886-1
Ubuntu:24.04:LTSgolang-1.221.22.2-2ubuntu0.1USN-6886-1
Ubuntu:24.04:LTSgolang-1.221.22.2-2ubuntu0.1UBUNTU-CVE-2024-24790

Affected products (as reported)

VendorProductVersions
Go standard library net/netip 0 – before 1.21.111.22.0-0 – before 1.22.4

References