CVE-2024-24790
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
1.95% (higher than 80% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GO-2024-2887BIT-GOLANG-2024-24790

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

Product or packageVersionsReported by
net/netipbefore 1.21.11, from 1.22.0-0 before 1.22.4CVE List
golang gobefore 1.21.11, from 1.22.0-0 before 1.22.4, from 1.22.0 before 1.22.4CVE List, NVD
stdlib (Go)before 1.21.11, from 1.22.0-0 before 1.22.4Go Vulnerability Database
golang (Bitnami)before 1.21.11, from 1.22.0-0 before 1.22.4Bitnami Vulnerability Database

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasecritical rating

Classification

CWE-180

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

Los diversos métodos Is (IsPrivate, IsLoopback, etc.) no funcionaron como se esperaba para las direcciones IPv6 asignadas a IPv4, devolviendo falso para direcciones que devolverían verdadero en sus formas IPv4 tradicionales.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2024-24790 changed 2025-02-13CVE Terms of Use
Go Vulnerability DatabaseGO-2024-2887 changed 2026-03-23CC-BY-4.0
NVDCVE-2024-24790 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2024-24790 changed 2026-09-08Apache-2.0