GO-2025-3421
ParsePKCS1PrivateKey panic with partial keys in crypto/x509
At a glance
- Published
- Updated
- CVE
- CVE-2025-22865
- Aliases
- BIT-golang-2025-22865
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 packages
| Package | Versions |
|---|---|
| Go · stdlib | introduced 1.24.0-0, fixed 1.24.0-rc.2 |
References
- https://go.dev/cl/643098 FIX
- https://go.dev/issue/71216 REPORT
- https://groups.google.com/g/golang-dev/c/CAWXhan3Jww/m/bk9LAa-lCgAJ WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |