CVE-2022-24921

HIGH7.5EPSS 0.02%

Stack exhaustion when compiling deeply nested expressions in regexp

Published: 5/23/2022Modified: 5/20/2024
Also known as:BIT-golang-2022-24921GO-2021-0347

Description

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.

Affected packages (3)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1HIGH7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References (12)