ZeroDay Brief
Happy holidays from ZeroDay Brief!
CVE-2026-77299

(?:){50000000} — the match engine executes the empty loop body m-1 times, pushing two integers onto the backtracking stack on every iteration.

CVSS
7.5High
Chance of exploitation (EPSS)
0.51%
Published
Nov 6, 2026
In the news
Not yet
More from this vendor

What to do

A serious resource exhaustion flaw in Dlclark Regexp2 that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.

Action: Check the vendor's advisory in the references and apply updates as soon as they are available.

Affected versions
Dlclark Regexp2
< 2.3.0

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.

CWE-400CWE-770

Affected products

Get alerts for these →

Timeline 2

Latest change: CVE-2026-77299 published (CVSS 7.5) (Nov 5, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

References 4

  • github.com /dlclark/regexp2/commit/6e446cb3a57a0f20112bc24353604fd00bdb309a
  • github.com /dlclark/regexp2/releases/tag/v2.3.0
  • github.com /dlclark/regexp2/security/advisories/GHSA-wq9v-j77v-qr26
  • github.com /dlclark/regexp2/security/advisories/GHSA-wq9v-j77v-qr26

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”