Live threats

All CVEs / Go standard library

CVE-2024-24783Go standard library crypto/x509

Medium 5.9 No auth needed

Priority
50
CVSS 3.1
5.9
EPSS
0.7%
probability of exploitation in 30 days · percentile 50
Auth required
No
Published
Mar 5, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-476
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for crypto/x509.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go stdlib < 1.21.8 1.21.8 go get stdlib@v1.21.8
Go stdlib ≥ 1.22.0-0 < 1.22.1 1.22.1 go get stdlib@v1.22.1

Per OSV / GitHub Advisories (GO-2024-2598). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.