Skip to main content
CVE-2026-77299VulnerabilityPublished Updated

Golang github dlclark regexp2: Prior to version 2.3.0, when regexp2 compiles and matches a pattern containing a large

Affects golang-github-dlclark-regexp2Source GCVE Database

0
Compare
Authoritative record:CVE-2026-77299· High 7.5

Not known to be exploited · CVSS 7.5 High · fixed in 2.3.0 : patch golang-github-dlclark-regexp2 soon.

Data as of 18 Nov 2026, 15:19 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.17.5
Patch
Available – fixed in 2.3.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10golang-github-dlclark-regexp2pkg:deb/ubuntu/golang-github-dlclark-regexp2?arch=source&distro=stonkingOther threatsAffected
  • =1.11.0+ds1-1
Fixed in–
Ubuntu 26.04 LTSgolang-github-dlclark-regexp2pkg:deb/ubuntu/golang-github-dlclark-regexp2?arch=source&distro=resoluteOther threatsAffected
  • =1.11.0+ds1-1
Fixed in–
Ubuntu 24.04 LTSgolang-github-dlclark-regexp2pkg:deb/ubuntu/golang-github-dlclark-regexp2?arch=source&distro=nobleOther threatsAffected
  • =1.4.0+ds1-1
  • =1.10.0+ds1-1
Fixed in–
Ubuntu 22.04 LTSgolang-github-dlclark-regexp2pkg:deb/ubuntu/golang-github-dlclark-regexp2?arch=source&distro=jammyOther threatsAffected
  • =1.2.0-1
  • =1.4.0+ds1-1
Fixed in–
Ubuntu 20.04 LTSgolang-github-dlclark-regexp2pkg:deb/ubuntu/golang-github-dlclark-regexp2?arch=source&distro=focalOther threatsAffected
  • =1.1.6-2
  • =1.2.0-1
Fixed in–
Ubuntu 18.04 LTSgolang-github-dlclark-regexp2pkg:deb/ubuntu/golang-github-dlclark-regexp2?arch=source&distro=bionicOther threatsAffected
  • =1.1.6-1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…