# CVE-2025-22865: ParsePKCS1PrivateKey panic with partial keys in crypto/x509

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 49% of CVEs (2026-12-01)
- Published: 2025-01-28T00:47:30.000Z
- Modified: 2026-06-17T08:50:38.050Z
- Also known as: GO-2025-3421, BIT-GOLANG-2025-22865
- Weaknesses: CWE-228
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

## Description

Using ParsePKCS1PrivateKey to parse a RSA key that is missing the CRT values would panic when verifying that the key is well formed.

(As written by CVE List.)

## Affected

- crypto/x509: from 1.24.0-0 before 1.24.0-rc.2
- stdlib (Go): from 1.24.0-0 before 1.24.0-rc.2
- golang (Bitnami): from 1.24.0-0 before 1.24.0-rc.2

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/cl/643098> (fix, web)
- <https://go.dev/issue/71216> (report, web)
- <https://groups.google.com/g/golang-dev/c/CAWXhan3Jww/m/bk9LAa-lCgAJ> (web)
- <https://pkg.go.dev/vuln/GO-2025-3421> (web)

## Sources

- CVE List: [CVE-2025-22865](https://www.cve.org/CVERecord?id=CVE-2025-22865), CVE Terms of Use, modified 2025-01-30
- Go Vulnerability Database: [GO-2025-3421](https://pkg.go.dev/vuln/GO-2025-3421), CC-BY-4.0, modified 2025-01-30
- NVD: [CVE-2025-22865](https://nvd.nist.gov/vuln/detail/CVE-2025-22865), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2025-22865](https://osv.dev/vulnerability/BIT-GOLANG-2025-22865), Apache-2.0, modified 2025-02-06

---

Page: https://cve.day/CVE-2025-22865 · Whole record: https://cve.day/CVE-2025-22865.json · Rebuilt by cve.day 2026-11-25T22:58:53.643Z
