ADVISORIES

Go Vulnerability Database

GO-2022-0171

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

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.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.6.4 (fixed in 1.6.4)
From 1.7.0-0 before 1.7.4 (fixed in 1.7.4)

References