VDB
Sign up
HIGH7.5

GO-2022-0171

Mishandled trust preferences for root certificates on Darwin in crypto/x509

Quick fix

GO-2022-0171 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.6.4

Details

On Darwin, user's trust preferences for root certificates were not honored. If the user had a root certificate loaded in their Keychain that was explicitly not trusted, a Go program would still verify a connection using that root certificate.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.6.4
Fixgo get stdlib@v1.6.4

References