GO-2025-3421

Source
https://pkg.go.dev/vuln/GO-2025-3421
Import Source
https://vuln.go.dev/ID/GO-2025-3421.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2025-3421
Aliases
Published
2025-01-28T00:47:30Z
Modified
2025-01-30T20:11:44.081032Z
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2025-3421"
}
References
Credits
    • Philippe Antoine (Catena cyber)

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
1.24.0-0
Fixed
1.24.0-rc.2

Ecosystem specific

{
    "imports": [
        {
            "path": "crypto/x509",
            "symbols": [
                "ParsePKCS1PrivateKey"
            ]
        }
    ]
}