Improper Check for Unusual or Exceptional Conditions Affecting std/net/netip package, versions <1.21.11>=1.22.0-0 <1.22.4


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-STDNETNETIP-14548515
  • published6 Jan 2026
  • disclosed4 Jun 2024
  • creditEnze Wang, Jianjun Chen

Introduced: 4 Jun 2024

CVE-2024-24790  (opens in a new tab)
CWE-754  (opens in a new tab)

How to fix?

Upgrade std/net/netip to version 1.21.11, 1.22.4 or higher.

Overview

std/net/netip is a Go standard library package std/net/netip

Affected versions of this package are vulnerable to Improper Check for Unusual or Exceptional Conditions.

Go Vulnerability Report:
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.

CVSS Base Scores

version 4.0
version 3.1