Go Vulnerability Database
GO-2024-2598
Verify panics on certificates with an unknown public key algorithm in crypto/x509
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.21.8 (fixed in 1.21.8) From 1.22.0-0 before 1.22.1 (fixed in 1.22.1) |