Article View: linux.debian.bugs.dist
Article #3568Bug#1153279: golang-github-dlclark-regexp2: CVE-2026-77299
From: Moritz Mühlenhoff
Date: Fri, 06 Nov 2026 22:20
Date: Fri, 06 Nov 2026 22:20
37 lines
3203 bytes
3203 bytes
Source: golang-github-dlclark-regexp2
X-Debbugs-CC: team@security.debian.org
Severity: grave
Tags: security
Hi,
The following vulnerability was published for golang-github-dlclark-regexp2.
CVE-2026-77299[0]:
| 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.
https://github.com/dlclark/regexp2/security/advisories/GHSA-wq9v-j77v-qr26
Fixed by: https://github.com/dlclark/regexp2/commit/6e446cb3a57a0f20112bc24353604fd00bdb309a (v2.3.0)
If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.
For further information see:
[0] https://security-tracker.debian.org/tracker/CVE-2026-77299
https://www.cve.org/CVERecord?id=CVE-2026-77299
Please adjust the affected versions in the BTS as needed.
Technical Details
Message-ID:
<NWArU-ah2V-13@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Moritz Mühlenhoff <jmm@inutil.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1153279: golang-github-dlclark-regexp2: CVE-2026-77299 Date: Fri, 06 Nov 2026 23:20:02 +0100 Message-ID: <NWArU-ah2V-13@gated-at.bofh.it> X-Original-To: submit@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Nov 6 22:15:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.65 Reply-To: Moritz Mühlenhoff <jmm@inutil.org>, 1153279@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: team@security.debian.org, team+pkg-go@tracker.debian.org X-Debian-Pr-Message: report 1153279 X-Debian-Pr-Package: src:golang-github-dlclark-regexp2 X-Debian-Pr-Keywords: security X-Debian-Pr-Source: golang-github-dlclark-regexp2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2001161 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 37 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 6 Nov 2026 23:13:44 +0100 X-Original-Message-ID: <au5RGD7HU2N5-RjS@pisco.westfalen.local>