← All news

Security alert · 4 Nov 2026

GitLab regex flaws: upgrade GitLab and check your Ruby

Two CVSS 10.0 GitLab flaws allow unauthenticated code execution and one is on CISA's exploited list. Fixed versions, the Ruby catch for custom installs, and what to do if you were exposed.

Last verified
4 Nov 2026
CVE
CVE-2026-97229, CVE-2026-110264, CVE-2026-89078, CVE-2026-93577
Status
Fixed in the 12 and 21 October patch releases. CVE-2026-97229 is on CISA's exploited list since 29 Oct 2026.

What happened

GitLab compiles regular expressions that users give it, for example in a CI/CD configuration. Researchers found bugs in the regex engine of Ruby (Onigmo) that let a crafted pattern corrupt memory while it is compiled. GitLab found that the bugs could lead to remote code execution on the GitLab server and published four CVEs. Ruby’s own post lists them: CVE-2026-89078, CVE-2026-93577, CVE-2026-97229 and CVE-2026-110264.

Two matter most. Both score CVSS 10.0 and need no login:

  • CVE-2026-97229 was fixed on 12 October in 19.4.2, 19.3.5 and 19.2.8. An unauthenticated user could run code on the server through a crafted regex in a CI/CD configuration. CISA added it to its Known Exploited Vulnerabilities catalog on 29 October with a federal due date of 1 November, and asks for forensic triage on top of patching.
  • CVE-2026-110264 was fixed on 21 October. It affects all GitLab CE and EE versions from 7.0 before the fixed releases. We did not find it in the CISA exploited list of 3 November.

GitLab.com and GitLab Dedicated are already patched. This is about self-managed GitLab.

The Hacker News reports that Alpine Linux said an attacker tried this exploit on its own GitLab server on 20 and 21 October, a week after the fix was out. Alpine found no sign the attack worked but cannot rule it out. It rebuilt the server and reset all passwords. Alpine’s server had been upgraded, but its image used a standard Ruby, so the upgrade did not close the hole.

The Ruby catch

The fix is a patch to Ruby, not to GitLab code. It is only included in official GitLab Linux packages and container images. GitLab says that if your install uses its own Ruby, such as a source install or a custom container image, upgrading GitLab is not enough. You must also move Ruby to 3.3.13, 3.4.12 or 4.0.9 or later.

Who is affected

Every self-managed GitLab CE or EE: Omnibus packages, Helm charts, Docker images and source installs. Fixed versions on 29 October, which include the earlier fixes:

Line Upgrade to at least
19.5 19.5.3
19.4 19.4.5
19.3 19.3.7
19.2 19.2.10
19.1 19.1.10
19.0 19.0.11
18.11 18.11.14

Older lines have no backport in these releases. Upgrade to a supported line first. These releases also remove trust for the compromised eMudhra CA certificates. GitLab Runner and the AI Gateway need their own update for that.

What to do now

1. Find every GitLab. Include test, staging and forgotten instances.

sudo gitlab-rake gitlab:env:info
curl --header "PRIVATE-TOKEN: $TOKEN" "https://gitlab.example.com/api/v4/version"

2. Upgrade to the versions above. Take a backup first and read GitLab’s upgrade path for your version.

3. Check the Ruby behind GitLab if it is not an official package or image.

ruby -v

The result must be 3.3.13, 3.4.12, 4.0.9 or newer. Rebuild and pull custom images again after the change.

4. Other Ruby apps are in the same position. Ruby says the bugs can be reached when an application builds a regex from text an attacker controls, with Regexp.new, Regexp.union, Regexp.compile or a literal like /#{input}/. Regexp.timeout does not protect against them and a length limit does not reliably do so either. Upgrade Ruby, or stop compiling untrusted patterns.

5. If an exposed instance ran an unpatched version, treat it as possibly compromised. Alpine’s own reasoning is a good bar: a successful exploit would leave no crash and no trace in the web logs. Code on a GitLab server runs where your source code, pipeline variables and runner tokens live. At minimum:

  • Rotate CI/CD variables, deploy keys, runner registration and authentication tokens, and access tokens.
  • Alpine replaced its GitLab secret keys as part of a full rebuild. Do not swap gitlab-secrets.json on its own, because it holds the keys that decrypt data in the database. Follow GitLab’s documentation before you change it.
  • Check recent commits, CI configuration changes, new users and new tokens.
  • Use GitLab’s threat detections. For CVE-2026-97229 GitLab lists six, including “Onigmo native worker crash” and “ci regexp guard rejection”. For CVE-2026-110264 it lists “Onigmo native worker crash” and “Org mode render error burst”.
  • If you cannot rule out code execution, rebuild the server from a clean image as Alpine did.

6. Reduce exposure. If GitLab does not need to be reachable from the internet, put it behind a VPN or an identity-aware proxy. Restrict who can register an account.

How we can help

We inventory every GitLab and runner you run, move them to patched versions with the right Ruby, and rotate what a CI server holds if it was exposed. Book a call from the button below.

Sources

  1. GitLab Critical Patch Release 19.4.2, 19.3.5, 19.2.8 (12 October 2026)
  2. GitLab Critical Patch Release 19.5.1 and others (21 October 2026)
  3. GitLab Patch Release 19.5.3 and others (29 October 2026)
  4. Ruby: Regexp compilation fixes related to GitLab's CVEs
  5. CISA Known Exploited Vulnerabilities catalog (CVE-2026-97229)
  6. The Hacker News: Attacker tried to exploit Alpine Linux's GitLab via CVSS 10.0 flaw its Ruby left open

Tell us what's slowing you down.

A 30-minute call with a senior engineer. You leave with a clear next step, whether or not that step is us.

Book a call