Advisory

GO-2024-2598

Also known as: BIT-golang-2024-24783, CVE-2024-24783

Summary

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.

Severity

Not rated by the source.

Dates

Published
2024-03-05 22:14 UTC
Modified
2026-02-04 03:12 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.21.8, introduced 1.22.0-0, fixed 1.22.1 (semver)

Fixed versions

1.21.8, 1.22.1

Fix

The export has no generic command for this ecosystem.

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