Advisory

GO-2022-0229

Also known as: BIT-golang-2020-7919, CVE-2020-7919, GHSA-cjjc-xp8v-855w

Summary

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.

Severity

Not rated by the source.

Dates

Published
2022-07-06 18:23 UTC
Modified
2026-02-04 04:21 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.12.16, introduced 1.13.0-0, fixed 1.13.7 (semver)

Fixed versions

1.12.16, 1.13.7

Fix

The export has no generic command for this ecosystem.

golang.org/x/crypto

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20200124225646-8b5121be2f68 (semver)

Fixed versions

0.0.0-20200124225646-8b5121be2f68

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences