CVEfocus › CVE database › CVE-2026-77299

CVE-2026-77299Regexp2: Unbounded memory amplification via large `{m}` quantifier on a zero-width…

CVSS 7.5 HighEPSS 0.6% (higher than 43% of CVEs)Published 2026-11-06Updated 2026-11-06Assigner: GitHub_M

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

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
5Fix pending
25Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-github-dlclark-regexp2Fix pendingUBUNTU-CVE-2026-77299
Ubuntu 26.04golang-github-dlclark-regexp2Under investigationUBUNTU-CVE-2026-77299
Ubuntu 24.04golang-github-dlclark-regexp2Under investigationUBUNTU-CVE-2026-77299
Ubuntu 22.04golang-github-dlclark-regexp2Under investigationUBUNTU-CVE-2026-77299
Ubuntu 20.04golang-github-dlclark-regexp2Fix pendingUBUNTU-CVE-2026-77299
Ubuntu 18.04golang-github-dlclark-regexp2Fix pendingUBUNTU-CVE-2026-77299
Debian 14golang-github-dlclark-regexp2Fixed1.11.0+ds1-2DEBIAN-CVE-2026-77299
Debian 13golang-github-dlclark-regexp2Fix pendingDEBIAN-CVE-2026-77299
Debian 12golang-github-dlclark-regexp2Fix pendingDEBIAN-CVE-2026-77299
Red Hat Enterprise Linux 10grafanaUnder investigation
Red Hat Enterprise Linux 10grafana-selinuxUnder investigation
Red Hat Enterprise Linux 10gvisor-tap-vsockUnder investigation
Red Hat Enterprise Linux 10gvisor-tap-vsock-gvforwarderUnder investigation
Red Hat Enterprise Linux 9grafanaUnder investigation
Red Hat Enterprise Linux 9grafana-selinuxUnder investigation
Red Hat Enterprise Linux 9gvisor-tap-vsockUnder investigation
Red Hat Enterprise Linux 9gvisor-tap-vsock-gvforwarderUnder investigation
Red Hat Enterprise Linux 8grafanaUnder investigation
Red Hat Enterprise Linux 8grafana-azure-monitorUnder investigation
Red Hat Enterprise Linux 8grafana-cloudwatchUnder investigation
Red Hat Enterprise Linux 8grafana-elasticsearchUnder investigation
Red Hat Enterprise Linux 8grafana-graphiteUnder investigation
Red Hat Enterprise Linux 8grafana-influxdbUnder investigation
Red Hat Enterprise Linux 8grafana-lokiUnder investigation
Red Hat Enterprise Linux 8grafana-mssqlUnder investigation
Red Hat Enterprise Linux 8grafana-mysqlUnder investigation
Red Hat Enterprise Linux 8grafana-opentsdbUnder investigation
Red Hat Enterprise Linux 8grafana-postgresUnder investigation
Red Hat Enterprise Linux 8grafana-prometheusUnder investigation
Red Hat Enterprise Linux 8grafana-selinuxUnder investigation
Red Hat Enterprise Linux 8grafana-stackdriverUnder investigation

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.