Live threats

All CVEs / Golang

CVE-2022-24921Golang Go

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Mar 5, 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

regexp.Compile in Go before 1.16.15 and 1.17.x before 1.17.8 allows stack exhaustion via a deeply nested expression.

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.16.15 1.16.15 go get stdlib@v1.16.15
Go stdlib ≥ 1.17.0-0 < 1.17.8 1.17.8 go get stdlib@v1.17.8

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

Affected products (CPE)

VendorProductVersions
golanggo< 1.16.15
golanggo≥ 1.17 < 1.17.8
netappastra_tridentall
debiandebian_linux9.0

Official sources

References

Links published by the sources. Open them with care.