ADVISORIES

Go Vulnerability Database

GO-2022-0229

Panic in certificate parsing in crypto/x509 and golang.org/x/crypto/cryptobyte

Details

On 32-bit architectures, a malformed input to crypto/x509 or the ASN.1 parsing functions of golang.org/x/crypto/cryptobyte can lead to a panic.

The malformed certificate can be delivered via a crypto/tls connection to a client, or to a server that accepts client certificates. net/http clients can be made to crash by an HTTPS server, while net/http servers that accept client certificates will recover the panic and are unaffected.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.12.16 (fixed in 1.12.16)
From 1.13.0-0 before 1.13.7 (fixed in 1.13.7)
Gogolang.org/x/crypto
All versions before 0.0.0-20200124225646-8b5121be2f68 (fixed in 0.0.0-20200124225646-8b5121be2f68)

References