Allocation of Resources Without Limits or Throttling Affecting std/regexp/syntax package, versions <1.18.7>=1.19.0-0 <1.19.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Social Trends
EPSS
1.43% (71st 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-STDREGEXPSYNTAX-14548567
  • published6 Jan 2026
  • disclosed6 Oct 2022
  • creditAdam Korczynski, OSS-Fuzz

Introduced: 6 Oct 2022

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

How to fix?

Upgrade std/regexp/syntax to version 1.18.7, 1.19.2 or higher.

Overview

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

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

Go Vulnerability Report:
Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service.The parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory.After fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Normal use of regular expressions is unaffected.

CVSS Base Scores

version 4.0
version 3.1