CVE-2025-22865
JSON

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 packageVersionsReported by
crypto/x509from 1.24.0-0 before 1.24.0-rc.2CVE List
stdlib (Go)from 1.24.0-0 before 1.24.0-rc.2Go Vulnerability Database
golang (Bitnami)from 1.24.0-0 before 1.24.0-rc.2Bitnami Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-228

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

SourceRecordLicence
CVE ListCVE-2025-22865 changed 2025-01-30CVE Terms of Use
Go Vulnerability DatabaseGO-2025-3421 changed 2025-01-30CC-BY-4.0
NVDCVE-2025-22865 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2025-22865 changed 2025-02-06Apache-2.0