CVE-2026-77299: Regexp2: Unbounded memory amplification via large `{m}` quantifier on a zero-width subexpression
Vulnerability summary
CVE-2026-77299 is a high (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in dlclark regexp2. EPSS estimates a 0.51% chance of exploitation in the next 30 days, higher than 45.3% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 06-11-2026PublishedVulnerability first disclosed.
- 06-11-2026Last modifiedVulnerability information updated.
Description
Regexp2 is a feature-rich RegExp engine for Go. Prior to version 2.3.0, when regexp2 compiles and matches a pattern containing a large fixed-count quantifier applied to a zero-width subexpression — e.g. (?:){50000000} — the match engine executes the empty loop body m-1 times, pushing two integers onto the backtracking stack on every iteration. Because the parser accepts any repetition count up to math.MaxInt32 and the backtracking stack grows without bound, a pattern of fewer than 20 bytes matched against an empty input can force multi-gigabyte allocation and OOM-kill the process. MatchTimeout does not fully mitigate this because the memory is allocated faster than the 100 ms timeout clock can fire. This issue has been patched in version 2.3.0.
CVSS metrics
5 scores · 5 sources · 1 version- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · Red hatEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.51%
Chance of exploitation in the next 30 days
Percentile
45%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-770Allocation of Resources Without Limits or ThrottlingThe product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat5 products
- hugo< 0:0.169.0-0.2.hum1
- loki3.6< 0:3.6.20-0.2.hum1
- loki3.6-canary< 0:3.6.20-0.2.hum1
- loki3.6-logcli< 0:3.6.20-0.2.hum1
- trivy< 0:0.76.1-0.3.hum1
Debian1 product
- golang-github-dlclark-regexp2All versions (No fix recorded) | < 1.11.0+ds1-2
Dlclark1 product
- regexp2< 2.3.0
Opensuse1 product
- argocd-cli&distro=openSUSE Tumbleweed< 3.6.2-1.1
Ubuntu1 product
- golang-github-dlclark-regexp2All versions (No fix recorded)
5 vendors · 9 products
References
19 links- github.com/dlclark/regexp2/commit/6e446cb3a57a0f20112bc24353604fd00bdb309aX Refsource MISCREPORTARTICLE
- images.redhat.comARTICLE