Golang github dlclark regexp2: Prior to version 2.3.0, when regexp2 compiles and matches a pattern containing a large
Affects golang-github-dlclark-regexp2Source GCVE Database
Not known to be exploited · CVSS 7.5 High · fixed in 2.3.0 : patch golang-github-dlclark-regexp2 soon.
Data as of 18 Nov 2026, 15:19 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.5 |
|---|
- Patch
- Available – fixed in 2.3.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 6 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10golang-github-dlclark-regexp2pkg:deb/ubuntu/golang-github-dlclark-regexp2?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-github-dlclark-regexp2pkg:deb/ubuntu/golang-github-dlclark-regexp2?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSgolang-github-dlclark-regexp2pkg:deb/ubuntu/golang-github-dlclark-regexp2?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSgolang-github-dlclark-regexp2pkg:deb/ubuntu/golang-github-dlclark-regexp2?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSgolang-github-dlclark-regexp2pkg:deb/ubuntu/golang-github-dlclark-regexp2?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSgolang-github-dlclark-regexp2pkg:deb/ubuntu/golang-github-dlclark-regexp2?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-77299 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-77299 (opens in a new tab)
- github.com/dlclark/regexp2/security/advisories/GHSA-wq9v-j77v-qr26 (opens in a new tab)
- github.com/dlclark/regexp2/commit/6e446cb3a57a0f20112bc24353604fd00bdb309a (opens in a new tab)
- github.com/dlclark/regexp2/releases/tag/v2.3.0 (opens in a new tab)