CVE-2025-22865
crypto/x509: ParsePKCS1PrivateKey panic with partial keys in crypto/x509
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · January 28, 2025
Updated · October 31, 2026
Description
A flaw was found in the crypto/x509 golang library. When using ParsePKCS1PrivateKey to parse an RSA key missing the CRT values, causes a panic when verifying the key is well formed.
Statement
This vulnerability affects only the Go 1.24 release candidates. Red Hat products do not utilize Go 1.24, except Red Hat Ceph Storage 8 which includes a Grafana container that uses Go 1.24 and is therefore affected by this issue.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE-228 · Improper Handling of Syntactically Invalid Structure