CVE Index中文
L4 · Septic Tank BlewGitLab · RCE · self-managedgitlab-regex-rce

GitLab: two perfect 10s, one regex engine, nine days apart

GitLab patches its second CVSS 10.0 regex-compiler RCE in nine days, and this one reaches back to GitLab 7.0

CISA now confirms exploitation of CVE-2026-97229, the Oct 12 GitLab regex RCE. The separate CVSS 10.0 CVE-2026-110264 still requires the Oct 21 fixes for GitLab 7.0 onwards; an Oct 12 patch alone is insufficient. The older flaw has a public PoC. Upgrade GitLab and affected Ruby applications; investigate exposed servers.

Disclosed
Oct 21, 2026
Updated Oct 31, 2026
Severity
CVSS 10 × 2
2 CVEs tracked here
Splash zone
Self-managed GitLab CE/EE 7.0+; other Ruby apps only when compiling attacker-controlled patterns
gitlab · ruby
In the wild
Yes
CISA confirms exploitation of CVE-2026-97229; not a confirmation for CVE-2026-110264

The one-sentence version

Feed GitLab a regular expression shaped just wrong and the engine's size maths wraps around, so it builds instructions that run the attacker's commands as the git user.

What happened

GitLab runs user-supplied regular expressions in many places: CI rules, code owners, push rules, markup rendering. It compiles them with Onigmo, the regex engine behind Ruby, which GitLab ships and patches in its own packages. Twice this month, researchers found a spot where Onigmo’s size calculation overflows, so the compiler emits broken bytecode that an attacker can turn into code execution as the git user.

  • Oct 12, CVE-2026-97229: reached through a crafted .gitlab-ci.yml on GitLab 19.2–19.4. Rapid7 published a working PoC the next day. The vendor calls it unauthenticated. In practice the attacker needs to commit to a public project, which is trivial if your instance allows open sign-up.
  • Oct 21, CVE-2026-110264: a different overflow in the same compiler that reaches back to GitLab 7.0 (2014). GitLab has not said which conditions an attacker needs, so you can’t configure your way out. If you patched on Oct 12, you still need this upgrade.

Why L4

CISA added CVE-2026-97229 to KEV on October 29, superseding our earlier statement that neither flaw had confirmed exploitation. This evidence concerns the October 12 sibling; it does not confirm attacks using CVE-2026-110264. L4 remains appropriate for active exploitation of a mainstream platform. The cited evidence does not establish a worm or internet-scale compromise that would warrant L5. GitLab.com and Dedicated were patched before disclosure; self-managed operators still need the newer package fixes listed above.

FCEB agencies have a November 1 remediation deadline for CVE-2026-97229, with forensic triage required by its KEV entry. That deadline is a federal requirement, not a grace period for other operators. Preserve evidence where possible, patch promptly and investigate possible prior access. CISA lists ransomware involvement as unknown; no victim count is supplied.

October 23 — upstream Ruby: The same bugs also affect applications that compile attacker-controlled strings into patterns. Ruby 4.0.9, 3.4.12 and 3.3.13 contain all three fixes behind GitLab’s four regex CVEs, including the two September issues already noted above. Ruby 4.0.8 lacks the CVE-2026-110264 fix. Developer-written static patterns are outside this exposure. Neither regex timeouts nor pattern-length caps reliably prevent it; stop accepting untrusted patterns until upgraded.

The table and checker cover GitLab packages, which ship their own patched Ruby. Upgrading an unrelated system Ruby does not replace the GitLab package upgrade. Ruby has not requested separate CVE identifiers for these fixes and asks users to track the GitLab identifiers instead.

Alpine update: Alpine reports October 20–21 exploit attempts, with no evidence of successful execution but insufficient logs to exclude it. It rebuilt GitLab and found no tampering in checked packages or releases; signing keys were never stored there. Its custom image remained vulnerable after a GitLab-only upgrade because it used unpatched system Ruby. This attempted attack does not negate CISA’s separate exploitation confirmation.

What’s in the bowl

Integer overflow in regex compilation

Fixed Oct 21. An unauthenticated user can run code on the server "under certain conditions" that GitLab has not described. Affects 7.0 onwards. Reported by joaxcar via HackerOne.

In plain poop: the plumbing counted the pipes wrong, and now there's a pipe straight into the server room.

Integer overflow in the CI/CD regex compiler

Fixed Oct 12 in 19.2.8 / 19.3.5 / 19.4.2. A crafted regex in .gitlab-ci.yml passes validation as US-ASCII, then overflows when Onigmo recompiles it for UTF-8. Rapid7 reproduced it and published a PoC; it needs commit access to a public project, which open sign-up gives anyone.

Are you standing in it?

Run sudo gitlab-rake gitlab:env:info | grep -i version on each box, then type the version or pick the closest match.

Fixed versions (Oct 21, 2026)
BranchSafe fromStatus
GitLab 19.519.5.1
GitLab 19.419.4.3Includes DB migrations
GitLab 19.319.3.6Includes DB migrations
GitLab 19.219.2.9Backport (critical fix only)
GitLab 19.119.1.9Backport (critical fix only)
GitLab 19.019.0.10Backport (critical fix only)
GitLab 7.0 – 18.1118.11.13Backport. Anything older: upgrade to 18.11.13 or later

Crime-scene timeline

  1. Sep 23, 2026

    GitLab fixes two 9.9 code-execution bugs that need a login

    CVE-2026-93577 and CVE-2026-89078.

  2. Oct 2, 2026

    Self-hosted AI Gateway gets a 9.9 template-sandbox escape

    CVE-2026-90970, fixed in gateway 19.2.4 / 19.3.2 / 19.4.1. Same month, different component.

  3. Oct 12, 2026

    CVE-2026-97229 fixed in 19.2.8, 19.3.5 and 19.4.2

  4. Oct 13, 2026

    Rapid7 reproduces CVE-2026-97229 and publishes a PoC

  5. Oct 21, 2026

    CVE-2026-110264 fixed in seven release lines, plus 11 other security fixes

    GitLab says 12 issues in total; some press says 11. Also fixed: CVE-2026-15723 (8.2, SAML/LDAP auto-link account takeover) and CVE-2026-112212 (7.5, OAuth/OIDC discovery cache poisoning).

  6. Oct 23, 03:11 UTC

    Ruby publishes upstream fixes and exposure guidance

    Ruby 4.0.9, 3.4.12 and 3.3.13 contain all three underlying fixes; 4.0.8 misses the newest overflow.

  7. Oct 28, 2026

    Alpine reports attempted exploitation and rebuild

  8. Oct 29, 2026

    CISA adds CVE-2026-97229 to KEV

    The FCEB remediation deadline is November 1; CISA flags this entry for forensic triage. This confirms exploitation of the Oct 12 flaw, not the Oct 21 sibling.

  9. Oct 30, 2026

    Alpine publishes reopened-service recovery steps

Who said what

We list each claim and who made it. Primary sources (the vendor, the researcher, the registry) are marked. Where reports disagree, we grade by the worst credible case.