Technical impact
Regexp2, a regex engine for Go, contains an unbounded memory amplification flaw. Patterns containing a large fixed‑count quantifier applied to a zero–width subexpression – for example (?:){50000000} – cause the engine to push millions of integers onto the back‑tracking stack. The memory grows until multi‑gigabyte allocations are required, which can lead to the process being OOM‑killed. The vulnerability is a classic case of uncontrolled resource consumption (CWE-400) and out‑of‑bounds memory access (CWE-770)."The impact is a local or remote denial of service if an attacker can supply such a pattern; the target application is brought down by exhausting available memory.
Affected Systems
The affected product is dlclark's Regexp2 library for Go. All versions prior to 2.3.0 are vulnerable. Version 2.3.0 and later include the fix. The issue was discovered in the commit 6e446cb3a57a0f20112bc24353604fd00bdb309a and is referenced in the 2.3.0 release notes.
Risk and Exploitability
The CVSS score of 7.5 indicates high severity. EPSS is not available, so the probability of exploitation is unknown; however, the failure occurs as soon as the offending pattern is compiled, so any application that accepts user‑supplied regexes can be impacted. KEV does not list this vulnerability, but that does not negate its risk. The attack path likely involves an attacker delivering a malicious regular expression to a component that compiles it with Regexp2, leading to a memory blow‑up and immediate process termination.