CVE-2024-24790
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 package | Versions | Reported by |
|---|---|---|
| net/netip | before 1.21.11, from 1.22.0-0 before 1.22.4 | CVE List |
| golang go | before 1.21.11, from 1.22.0-0 before 1.22.4, from 1.22.0 before 1.22.4 | CVE List, NVD |
| stdlib (Go) | before 1.21.11, from 1.22.0-0 before 1.22.4 | Go Vulnerability Database |
| golang (Bitnami) | before 1.21.11, from 1.22.0-0 before 1.22.4 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
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
| https://go.dev/cl/590316 | fix, patch | |
| https://go.dev/issue/67680 | issue-tracking, report | |
| https://groups.google.com/g/golang-announce/c/XbxouI9gY7k/m/TuoGEhxIEwAJ | article, release-notes, web | |
| https://pkg.go.dev/vuln/GO-2024-2887 | advisory, third-party-advisory | |
| http://www.openwall.com/lists/oss-security/2024/06/04/1 | advisory, mailing-list, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20240905-0002/ | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-24790 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-24790 changed 2025-02-13 | CVE Terms of Use |
| Go Vulnerability Database | GO-2024-2887 changed 2026-03-23 | CC-BY-4.0 |
| NVD | CVE-2024-24790 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2024-24790 changed 2026-09-08 | Apache-2.0 |