Improper Certificate Validation Affecting std/crypto/x509 package, versions <1.22.11>=1.23.0-0 <1.23.5>=1.24.0-0 <1.24.0-rc.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.57% (47th 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-STDCRYPTOX509-14545631
  • published6 Jan 2026
  • disclosed28 Jan 2025
  • creditJuho Forsén

Introduced: 28 Jan 2025

CVE-2024-45341  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade std/crypto/x509 to version 1.22.11, 1.23.5, 1.24.0-rc.2 or higher.

Overview

std/crypto/x509 is a Go standard library package std/crypto/x509

Affected versions of this package are vulnerable to Improper Certificate Validation.

Go Vulnerability Report:
A certificate with a URI which has a IPv6 address with a zone ID may incorrectly satisfy a URI name constraint that applies to the certificate chain.Certificates containing URIs are not permitted in the web PKI, so this only affects users of private PKIs which make use of URIs.

CVSS Base Scores

version 4.0
version 3.1