Live threats

All CVEs / Golang

CVE-2024-24790Golang Go

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.2%
probability of exploitation in 30 days · percentile 83
Auth required
No
Published
Jun 5, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go stdlib < 1.21.11 1.21.11 go get stdlib@v1.21.11
Go stdlib ≥ 1.22.0-0 < 1.22.4 1.22.4 go get stdlib@v1.22.4

Per OSV / GitHub Advisories (GO-2024-2887). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golanggo< 1.21.11
golanggo≥ 1.22.0 < 1.22.4

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.