GO-2021-0347
Dashboard / Vulnerabilities / GO-2021-0347
GO-2021-0347
Published: 23 May 2022Last Modified: 20 May 2024
Aliases:
Summary: Stack exhaustion when compiling deeply nested expressions in regexp
Details: 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.
References: https://go.dev/cl/384616, https://go.googlesource.com/go/+/452f24ae94f38afa3704d4361d91d51218405c0a, https://go.dev/issue/51112, https://groups.google.com/g/golang-announce/c/RP1hfrBYVuk
Affected packages
Package
Name: stdlib
Purl: pkg:golang/stdlib
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.16.15
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
