GO-2025-4009

Source
https://pkg.go.dev/vuln/GO-2025-4009
Import Source
https://vuln.go.dev/ID/GO-2025-4009.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2025-4009
Aliases
Published
2025-10-29T21:49:55Z
Modified
2025-11-06T13:59:40.511341Z
Summary
Quadratic complexity when parsing some invalid inputs in encoding/pem
Details

The processing time for parsing some invalid inputs scales non-linearly with respect to the size of the input.

This affects programs which parse untrusted PEM inputs.

Database specific
{
    "url": "https://pkg.go.dev/vuln/GO-2025-4009",
    "review_status": "REVIEWED"
}
References
Credits
    • Jakub Ciolek

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.24.8
Introduced
1.25.0
Fixed
1.25.2

Ecosystem specific

{
    "imports": [
        {
            "path": "encoding/pem",
            "symbols": [
                "Decode",
                "getLine"
            ]
        }
    ]
}