CVE-2024-24790: 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.
Critical CVSS 9.8
- CVE id
- CVE-2024-24790
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Go Runtimes and servers |
< 1.21.11 >= 1.22.0, < 1.22.4 |
1.21.11, 1.22.4 |
How to fix it
Upgrade Go to the fixed release of the line you run: 1.21.11, 1.22.4.
go version
- Build with the patched Go release (set "toolchain" in go.mod, or the golang image tag) and redeploy: Go programs include the standard library, so they must be rebuilt.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2024-24790 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2024-24790
- Web: https://go.dev/cl/590316
- Web: https://go.dev/issue/67680
- Web: https://groups.google.com/g/golang-announce/c/XbxouI9gY7k/m/TuoGEhxIEwAJ
- Web: https://pkg.go.dev/vuln/GO-2024-2887
- Web: https://go.dev/cl/590316
- Web: https://go.dev/issue/67680
- Web: https://groups.google.com/g/golang-announce/c/XbxouI9gY7k/m/TuoGEhxIEwAJ
- Web: https://pkg.go.dev/vuln/GO-2024-2887
- Web: https://security.netapp.com/advisory/ntap-20240905-0002/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.