What’s Vulnerable › Vulnerabilities

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

Description

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

Affected products

How to fix

Upgrade to a fixed version: Go standard library crypto/x509 1.24.0-rc.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-22865 or the next vulnerability affects your stack