If you run your own GitLab server, there is a version check to do today and a second check most coverage of this flaw leaves out. CVE-2026-97229 lets an attacker run code on a self-hosted GitLab instance by submitting a specially crafted regular expression in a CI configuration. CISA added it to the Known Exploited Vulnerabilities catalogue on 29 October 2026, with a 1 November deadline for US federal agencies. Shadowserver has counted more than a thousand instances still reachable and unpatched.
The second check is the one that caught Alpine Linux: the bug is not really in GitLab. It is in Ruby's regular expression engine, and whether your GitLab is fixed depends on which Ruby it was built against.
What the flaw actually is
GitLab compiles regular expressions that its users supply — patterns in CI configuration, among other places — by handing them to Ruby's Regexp.new. Ruby's regex engine, Onigmo, miscalculates the size of a compiled pattern under certain inputs. That integer overflow corrupts memory during compilation, and GitLab found the corruption could be steered into remote code execution on the server. No authentication is needed for the path that matters, and the flaw is reported at CVSS 10.0.
GitLab filed four CVEs for this family of bugs, which is worth knowing because they land in different releases:
- CVE-2026-89078, a double free in the regex parser, fixed in GitLab 19.4.1
- CVE-2026-93577, an integer overflow in the regex compiler, fixed in GitLab 19.4.1
- CVE-2026-97229, the same class of overflow reached through the CI/CD regex compiler — this one — fixed in GitLab 19.4.2
- CVE-2026-110264, an overflow of internal pattern IDs, fixed in GitLab 19.5.1
For CVE-2026-97229, GitLab shipped Community and Enterprise Edition patches on 12 October 2026 in 19.4.2, 19.3.5 and 19.2.8. The vulnerable ranges are 19.2.0 to 19.2.7, 19.3.0 to 19.3.4 and 19.4.0 to 19.4.1. If you are reading a version number ending in 19.3.4 and thinking it looks recent, it is vulnerable.
Ruby released 4.0.8, 3.4.12 and 3.3.13 carrying the underlying fixes; 4.0.9 adds the fix for CVE-2026-110264 as well. Two details from Ruby's own advisory are worth repeating because they rule out the obvious workarounds: Regexp.timeout does not protect against these bugs, and capping the length of accepted patterns does not reliably protect against them either, because some can be triggered by short patterns. Ruby has not assigned its own CVE identifiers for the fixes, so a scanner keyed to Ruby advisories will not raise this — track the GitLab identifiers instead.
Why Alpine Linux rebuilt from scratch
Between 20 and 21 October, someone registered a new account on Alpine Linux's GitLab and began submitting crafted CI configurations. Eight worker processes crashed. Four of the attempts showed signs of partial success. The attacker also pulled down the GitLab container image Alpine was running, which reads as an attacker tuning an exploit against the exact build in front of them.
Alpine found no evidence that code ever ran on the server. It also could not prove that it had not: the logs and outbound connection records that would have settled the question were not there. Its own statement is the cleanest summary of why the next decision was expensive — because code execution could not be ruled out and the evidence to confirm it no longer existed, the team rebuilt the GitLab instance from scratch rather than assume. That rebuild finished on 28 October. All passwords were reset, partly because Alpine was also seeing automated login attempts using credentials leaked elsewhere. Checks on the aports repository, the packages and the 21 October releases found no tampering.
The detail that generalises beyond Alpine is why the upgrade did not immediately help. GitLab fixed this by patching the Ruby it ships inside its own official packages. Alpine runs a custom container image, and that image did not include the patched Ruby. On 26 October — days after upgrading GitLab itself — Alpine found its installation still vulnerable. The fixed image is alpinelinux/gitlab:19.3.6, built on Ruby 3.3.13.
What to check on your own instance
Three things, in order.
- The GitLab version. Anything below 19.2.8, 19.3.5 or 19.4.2 on its branch is affected by CVE-2026-97229, and anything below the 19.5.1-era patches is still exposed to CVE-2026-110264. Later branches are the simpler answer where you can take them.
- The Ruby underneath. If you installed from GitLab's official Omnibus packages or official images, the patched Ruby came with the upgrade. If you build your own image, install from source, or run a distribution-packaged or community-maintained image, check the Ruby version inside the running container or on the host: you want 4.0.8 or later, 3.4.12 or later, or 3.3.13 or later. A correct GitLab version string on top of an unpatched Ruby is exactly the state Alpine was in.
- Whether the instance needs to be on the public internet at all. The exploitation path begins with an account that can submit CI configuration, and Alpine's attacker simply registered one. If open registration is on, turn it off. If the instance does not need to answer the whole internet, put it behind a VPN or an IP allow list while you patch.
Then, because exploitation has been confirmed rather than theorised, look for the signs. Crashing Sidekiq or Puma workers with no deployment to explain them, clustered in time. Accounts registered shortly before those crashes. CI jobs from projects nobody recognises. Outbound connections from the GitLab host to addresses it has no business reaching. Alpine's experience makes the uncomfortable point here: if your logging does not retain enough to answer "did something run", the honest answer after an attempt is that you cannot tell, and rebuilding becomes the cheaper option.
The pattern behind this one
This is the third time in a few weeks that a widely reported vulnerability turned out to live one layer below the product that got the headline — the Brotli decoder reported as a Node.js flaw, the interpreter bugs reported as application flaws, and now a Ruby regex engine reported as a GitLab flaw. The practical consequence is the same each time: a version number is an indicator, not a determination. What decides exposure is which copy of the vulnerable component your deployment actually loads.
If you want to know what a self-hosted GitLab, or anything else you run, looks like from outside right now — what is reachable, what it discloses about itself, which services are answering that you thought were internal — that is what an external attack surface scan checks, and it is the cheapest half of this question to answer. The other half, the one about what an attacker reaches after the first foothold, is a penetration test.
Sources: Ruby — Regexp compilation fixes related to GitLab's CVEs, The Hacker News — CISA adds actively exploited GitLab RCE to KEV, SecurityWeek — Max-severity GitLab vulnerability exploited against Alpine Linux, BleepingComputer — Over 1,000 GitLab servers vulnerable to code execution attacks, Help Net Security — GitLab admins urged to patch critical RCE flaw. The CVE-to-release mapping and the Ruby fix versions come from Ruby's own advisory. The affected GitLab version ranges, the CVSS 10.0 score, the KEV date and the Shadowserver count come from secondary reporting of GitLab's and CISA's advisories rather than from those advisories directly, and the Alpine Linux account is Alpine's own, quoted in that reporting. Alpine states it found no evidence of code execution on its server; a successful compromise there has not been established.

