Go Vulnerability Database
GO-2025-3421
ParsePKCS1PrivateKey panic with partial keys in crypto/x509
Details
Using ParsePKCS1PrivateKey to parse a RSA key that is missing the CRT values would panic when verifying that the key is well formed.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | From 1.24.0-0 before 1.24.0-rc.2 (fixed in 1.24.0-rc.2) |