Uncontrolled Recursion Affecting std/encoding/pem package, versions <1.17.9>=1.18.0-0 <1.18.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
9.95% (96th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-STDENCODINGPEM-14545636
  • published6 Jan 2026
  • disclosed20 May 2022
  • creditJuho Nurminen

Introduced: 20 May 2022

CVE-2022-24675  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade std/encoding/pem to version 1.17.9, 1.18.1 or higher.

Overview

std/encoding/pem is a Go standard library package std/encoding/pem

Affected versions of this package are vulnerable to Uncontrolled Recursion.

Go Vulnerability Report:
Stack overflow via a large amount of PEM data via the Decode function. An attacker can cause a stack overflow and potentially crash the application by supplying a large amount of PEM data.

CVSS Base Scores

version 4.0
version 3.1