CVE-2025-22865
7.5high
ParsePKCS1PrivateKey panic with partial keys in crypto/x509
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.60% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GO-2025-3421BIT-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
| Product or package | Versions | Reported by |
|---|---|---|
| crypto/x509 | from 1.24.0-0 before 1.24.0-rc.2 | CVE List |
| stdlib (Go) | from 1.24.0-0 before 1.24.0-rc.2 | Go Vulnerability Database |
| golang (Bitnami) | from 1.24.0-0 before 1.24.0-rc.2 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Using ParsePKCS1PrivateKey to parse a RSA key that is missing the CRT values would panic when verifying that the key is well formed.
NVD (es)
El uso de ParsePKCS1PrivateKey para analizar una clave RSA a la que le faltan los valores CRT provocaría un pánico al verificar que la clave esté bien formada.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-22865 changed 2025-01-30 | CVE Terms of Use |
| Go Vulnerability Database | GO-2025-3421 changed 2025-01-30 | CC-BY-4.0 |
| NVD | CVE-2025-22865 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2025-22865 changed 2025-02-06 | Apache-2.0 |