GO-2024-2887
Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses in net/netip
At a glance
- Published
- Updated
- CVE
- CVE-2024-24790
- Aliases
- BIT-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 packages
| Package | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.21.11, introduced 1.22.0-0, fixed 1.22.4 |
References
- https://go.dev/cl/590316 FIX
- https://go.dev/issue/67680 REPORT
- https://groups.google.com/g/golang-announce/c/XbxouI9gY7k/m/TuoGEhxIEwAJ WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |