Go Vulnerability Database
GO-2021-0223
Certificate verification error on Windows in crypto/x509
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.13.13 (fixed in 1.13.13) From 1.14.0-0 before 1.14.5 (fixed in 1.14.5) |