Live threats

All CVEs / Golang

CVE-2022-24675Golang Go

High 7.5 No auth needed

Priority
61
CVSS 3.1
7.5
EPSS
6.9%
probability of exploitation in 30 days · percentile 95
Auth required
No
Published
Apr 20, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-674
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

encoding/pem in Go before 1.17.9 and 1.18.x before 1.18.1 has a Decode stack overflow via a large amount of PEM data.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go stdlib < 1.17.9 1.17.9 go get stdlib@v1.17.9
Go stdlib ≥ 1.18.0-0 < 1.18.1 1.18.1 go get stdlib@v1.18.1

Per OSV / GitHub Advisories (GO-2022-0433). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golanggo< 1.17.9
golanggo≥ 1.18.0 < 1.18.1
fedoraprojectfedora34
fedoraprojectfedora35
fedoraprojectfedora36
netappkubernetes_monitoring_operatorall

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.