CVE-2026-77299
CVE-2026-77299 · Regexp2: Unbounded memory amplification via large `{m}` quantifier on a zero-width subexpression
CVSS 7.5 · High · EPSS 0.5% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- regexp2No fix published
- golang-github-dlclark-regexp2 Debian 12No fix published
- golang-github-dlclark-regexp2 Debian 13No fix published
- golang-github-dlclark-regexp2 Debian 14Update to 1.11.0+ds1-2
- and 6 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-github-dlclark-regexp2"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- openSUSE-SU-2026:12604-1 · openSUSE Tumbleweed ·
- RHSA-2026:99590 · Red Hat hummingbird 1 ·
- RHSA-2026:97885 · Red Hat hummingbird 1 ·
- RHSA-2026:98019 · Red Hat hummingbird 1 ·
Stack: system
Affected products and versions
regexp2
- Versions
- < 2.3.0: Affected
No fix published
golang-github-dlclark-regexp2 Debian 12
- Versions
- 1.10.0+ds1-1
- 1.10.0+ds1-1~bpo12+1
- 1.11.0+ds1-1
- 1.11.0+ds1-2
- 1.4.0+ds1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-dlclark-regexp2 Debian 13
- Versions
- 1.11.0+ds1-1
- 1.11.0+ds1-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-dlclark-regexp2 Debian 14
- Versions
- 1.11.0+ds1-1
- Affected ranges
- ECOSYSTEM: < 1.11.0+ds1-2
Update to 1.11.0+ds1-2
golang-github-dlclark-regexp2 Ubuntu 18.04 LTS
- Versions
- 1.1.6-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-dlclark-regexp2 Ubuntu 20.04 LTS
- Versions
- 1.1.6-2
- 1.2.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-dlclark-regexp2 Ubuntu 22.04 LTS
- Versions
- 1.2.0-1
- 1.4.0+ds1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-dlclark-regexp2 Ubuntu 24.04 LTS
- Versions
- 1.4.0+ds1-1
- 1.10.0+ds1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-dlclark-regexp2 Ubuntu 26.10
- Versions
- 1.11.0+ds1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
golang-github-dlclark-regexp2 Ubuntu 26.04 LTS
- Versions
- 1.11.0+ds1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published