Improper Certificate Validation Affecting std/crypto/x509 package, versions <1.13.13>=1.14.0-0 <1.14.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.76% (76th 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-14545536
  • published6 Jan 2026
  • disclosed17 Feb 2022
  • creditNiall Newman

Introduced: 17 Feb 2022

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

How to fix?

Upgrade std/crypto/x509 to version 1.13.13, 1.14.5 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 Windows, if VerifyOptions.Roots is nil, Certificate.Verify does not check the EKU requirements specified in VerifyOptions.KeyUsages. This may allow a certificate to be used for an unintended purpose.

CVSS Base Scores

version 4.0
version 3.1