High severity · published Jan 28, 2025
CVE-2025-22865
ParsePKCS1PrivateKey panic with partial keys in crypto/x509
7.5
CVSS
0.6%
EPSS
No
On KEV
Description
Using ParsePKCS1PrivateKey to parse a RSA key that is missing the CRT values would panic when verifying that the key is well formed.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 49% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CR
crypto/x509 · Go standard library
1.24.0-0 before 1.24.0-rc.2 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-22865
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-22865
go.dev
https://go.dev/cl/643098
go.dev
https://go.dev/issue/71216
groups.google.com
https://groups.google.com/g/golang-dev/c/CAWXhan3Jww/m/bk9LAa-lCgAJ
pkg.go.dev
https://pkg.go.dev/vuln/GO-2025-3421
More from crypto/x509
8.2
CVE-2026-33810
Case-sensitive excludedSubtrees name constraints cause Auth Bypass in crypto/x509
7.5
CVE-2026-32280
Unexpected work during chain building in crypto/x509
7.5
CVE-2026-32281
Inefficient policy validation in crypto/x509
7.5
CVE-2026-27137
Incorrect enforcement of email constraints in crypto/x509
7.5
CVE-2025-61729
Excessive resource consumption when printing error string for host certificate validation in crypto/x509
