GO-2025-3421

ParsePKCS1PrivateKey panic with partial keys in crypto/x509

At a glance

Published
Updated
CVE
CVE-2025-22865
Aliases
BIT-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 packages

PackageVersions
Go · stdlibintroduced 1.24.0-0, fixed 1.24.0-rc.2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database