ADVISORIES

Go Vulnerability Database

GO-2026-4947

Unexpected work during chain building in crypto/x509

Details

During chain building, the amount of work that is done is not correctly limited when a large number of intermediate certificates are passed in VerifyOptions.Intermediates, which can lead to a denial of service. This affects both direct users of crypto/x509 and users of crypto/tls.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.25.9 (fixed in 1.25.9)
From 1.26.0-0 before 1.26.2 (fixed in 1.26.2)

References