MEDIUM5.9
GO-2024-2598
Verify panics on certificates with an unknown public key algorithm in crypto/x509
Quick fix
GO-2024-2598 — stdlib: upgrade to the fixed version with the command below.
go get stdlib@v1.21.8Details
Verifying a certificate chain which contains a certificate with an unknown public key algorithm will cause Certificate.Verify to panic.
This affects all crypto/tls clients, and servers that set Config.ClientAuth to VerifyClientCertIfGiven or RequireAndVerifyClientCert. The default behavior is for TLS servers to not verify client certificates.
Are you affected?
Enter the version of the package you're using.