7.5High

CVE-2025-22865ParsePKCS1PrivateKey panic with partial keys in crypto/x509

Go standard library crypto/x509 Published: (1 year ago)

Description

Using ParsePKCS1PrivateKey to parse a RSA key that is missing the CRT values would panic when verifying that the key is well formed.

Weakness (CWE): CWE-228

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library crypto/x509 1.24.0-0 – < 1.24.0-rc.2

References and patches