Advisory

GO-2025-3421

Also known as: BIT-golang-2025-22865, CVE-2025-22865

Summary

ParsePKCS1PrivateKey panic with partial keys in crypto/x509

Details

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

Severity

Not rated by the source.

Dates

Published
2025-01-28 00:47 UTC
Modified
2025-01-30 20:12 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 1.24.0-0, fixed 1.24.0-rc.2 (semver)

Fixed versions

1.24.0-rc.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences