Advisory

GO-2024-2887

Also known as: BIT-golang-2024-24790, CVE-2024-24790

Summary

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

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.

Severity

Not rated by the source.

Dates

Published
2024-06-04 22:48 UTC
Modified
2026-03-23 05:07 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.21.11, introduced 1.22.0-0, fixed 1.22.4 (semver)

Fixed versions

1.21.11, 1.22.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences