Improper Certificate Validation Affecting std/crypto/x509 package, versions <1.12.16>=1.13.0-0 <1.13.7


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.65% (85th 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-14548574
  • published6 Jan 2026
  • disclosed6 Jul 2022
  • creditProject Wycheproof

Introduced: 6 Jul 2022

CVE-2020-7919  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade std/crypto/x509 to version 1.12.16, 1.13.7 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:
On 32-bit architectures, a malformed input to crypto/x509 or the ASN.1 parsing functions of golang.org/x/crypto/cryptobyte can lead to a panic.The malformed certificate can be delivered via a crypto/tls connection to a client, or to a server that accepts client certificates. net/http clients can be made to crash by an HTTPS server, while net/http servers that accept client certificates will recover the panic and are unaffected.

CVSS Base Scores

version 4.0
version 3.1