Allocation of Resources Without Limits or Throttling Affecting std/regexp package, versions <1.16.15>=1.17.0-0 <1.17.8


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
3.26% (87th 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 Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-STDREGEXP-14548569
  • published6 Jan 2026
  • disclosed23 May 2022
  • creditJuho Nurminen

Introduced: 23 May 2022

CVE-2022-24921  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade std/regexp to version 1.16.15, 1.17.8 or higher.

Overview

std/regexp is a Go standard library package std/regexp

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling.

Go Vulnerability Report:
On 64-bit platforms, an extremely deeply nested expression can cause regexp.Compile to cause goroutine stack exhaustion, forcing the program to exit. Note this applies to very large expressions, on the order of 2MB.

CVSS Base Scores

version 4.0
version 3.1