Regexp2
Monthly
Memory exhaustion denial of service in the Go regexp2 regular expression engine affects every release prior to 2.3.0 when an application compiles a pattern controlled or influenced by an attacker. A sub-20-byte pattern such as (?:){50000000} that applies a very large fixed-count quantifier to a zero-width subexpression causes the matcher to allocate hundreds of megabytes to tens of gigabytes while running against an empty input, OOM-killing the process; the upstream advisory reproduces roughly 2.5 GiB of allocation and ~3 seconds of CPU from a 14-byte pattern. Exploitation requires that the attacker control the pattern rather than the haystack, and applications that only compile hard-coded patterns are unaffected. The upstream advisory includes a public proof-of-concept; no CISA KEV entry or confirmed in-the-wild exploitation is indicated in the available data.
Memory exhaustion denial of service in the Go regexp2 regular expression engine affects every release prior to 2.3.0 when an application compiles a pattern controlled or influenced by an attacker. A sub-20-byte pattern such as (?:){50000000} that applies a very large fixed-count quantifier to a zero-width subexpression causes the matcher to allocate hundreds of megabytes to tens of gigabytes while running against an empty input, OOM-killing the process; the upstream advisory reproduces roughly 2.5 GiB of allocation and ~3 seconds of CPU from a 14-byte pattern. Exploitation requires that the attacker control the pattern rather than the haystack, and applications that only compile hard-coded patterns are unaffected. The upstream advisory includes a public proof-of-concept; no CISA KEV entry or confirmed in-the-wild exploitation is indicated in the available data.