7.5High

CVE-2025-61723Quadratic complexity when parsing some invalid inputs in encoding/pem

Go standard library encoding/pem Published: (1 year ago)

Description

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.

Weakness (CWE): CWE-407CWE-770

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library encoding/pem < 1.24.8, 1.25.0 – < 1.25.2
golang go < 1.24.8

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* < 1.24.8
  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* ≥ 1.25.0 < 1.25.2