VDB
Sign up
MEDIUM5.3

GO-2021-0223

Certificate verification error on Windows in crypto/x509

Quick fix

GO-2021-0223 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.13.13

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.13.13
Fixgo get stdlib@v1.13.13

References