# CVE-2026-77299: Regexp2: Unbounded memory amplification via large \`{m}\` quantifier on a zero-width subexpression

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 2.3.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-11-06 · Modified: 2026-11-06
- Aliases: DEBIAN-CVE-2026-77299, UBUNTU-CVE-2026-77299, RHSA-2026:97885, RHSA-2026:98019, RHSA-2026:99590, openSUSE-SU-2026:12604-1
- Record: https://cvemate.com/vulnerability/CVE-2026-77299 · JSON: https://cvemate.com/vulnerability/CVE-2026-77299/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.514%, percentile 45.306%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian golang-github-dlclark-regexp2 (Debian): All versions (No fix recorded) \| \< 1.11.0+ds1-2
- ubuntu golang-github-dlclark-regexp2 (Ubuntu): All versions (No fix recorded)
- dlclark regexp2: \< 2.3.0
- opensuse argocd-cli&distro=openSUSE Tumbleweed (openSUSE): \< 3.6.2-1.1
- redhat hugo (Red Hat): \< 0:0.169.0-0.2.hum1
- redhat loki3.6 (Red Hat): \< 0:3.6.20-0.2.hum1
- redhat loki3.6-canary (Red Hat): \< 0:3.6.20-0.2.hum1
- redhat loki3.6-logcli (Red Hat): \< 0:3.6.20-0.2.hum1
- redhat trivy (Red Hat): \< 0:0.76.1-0.3.hum1

## References

- <https://github.com/dlclark/regexp2/security/advisories/GHSA-wq9v-j77v-qr26>
- <https://github.com/dlclark/regexp2/commit/6e446cb3a57a0f20112bc24353604fd00bdb309a>
- <https://github.com/dlclark/regexp2/releases/tag/v2.3.0>
- <https://security-tracker.debian.org/tracker/CVE-2026-77299>
- <https://ubuntu.com/security/CVE-2026-77299>
- <https://www.cve.org/CVERecord?id=CVE-2026-77299>
- <https://access.redhat.com/errata/RHSA-2026:97885>
- <https://access.redhat.com/security/cve/CVE-2026-77299>
- <https://access.redhat.com/security/updates/classification/>
- <https://images.redhat.com/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_97885.json>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2568017>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-77299>
- <https://access.redhat.com/errata/RHSA-2026:98019>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_98019.json>
- <https://access.redhat.com/errata/RHSA-2026:99590>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_99590.json>
- <https://www.suse.com/security/cve/CVE-2026-77299>
- <https://access.redhat.com/security/cve/CVE-2026-103025>

---

Data as of 2026-12-05T09:57:31.148Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
