CVE-2025-22865

published 28 Jan 2025 · updated 30 Jan 2025

ParsePKCS1PrivateKey panic with partial keys in crypto/x509

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.24.0-rc.2.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library>=1.24.0-0 <1.24.0-rc.21.24.0-rc.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-22865 severity on Zeptric[![CVE-2025-22865](https://zeptric.io/badge/cve/CVE-2025-22865.svg)](https://zeptric.io/cve/CVE-2025-22865)