๐Ÿ” CVE Alert

CVE-2026-77299

HIGH 7.5

Regexp2: Unbounded memory amplification via large `{m}` quantifier on a zero-width subexpression

CVSS Score
7.5
EPSS Score
0.0%
EPSS Percentile
0th

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 CWE-400 CWE-770
Vendor dlclark
Product regexp2
Published Nov 6, 2026
Stay Ahead of the Next One

Get instant alerts for dlclark regexp2

Be the first to know when new high vulnerabilities affecting dlclark regexp2 are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Affected Versions

dlclark / regexp2
< 2.3.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/dlclark/regexp2/security/advisories/GHSA-wq9v-j77v-qr26 github.com: https://github.com/dlclark/regexp2/commit/6e446cb3a57a0f20112bc24353604fd00bdb309a github.com: https://github.com/dlclark/regexp2/releases/tag/v2.3.0