Skip to content

encoding/pem: quadratic complexity when parsing some invalid inputs (CVE-2025-61723) #75676

@neild

Description

@neild

Due to the design of the PEM parsing function, the processing time for some
inputs scales non-linearly with respect to the size of the input.

This affects programs which parse untrusted PEM inputs.

Thanks to Jakub Ciolek for reporting this issue.

This is CVE-2025-61723 and Go issue https://go.dev/issue/75676.


This is a PRIVATE issue for CVE-2025-61723, tracked in http://b/442561478 and fixed by https://go-internal-review.git.corp.google.com/c/go/+/2921.

/cc @golang/security and @golang/release

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.Securityrelease-blocker

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions