You patched GitLab on the 12th. Open again on the 21st
October has been the month of maximum scores. PHP, Laravel and, twice, GitLab. On October 12 GitLab shipped a patch for a 10-out-of-10 flaw. On the 21st, another one. Same component, same researcher, and this time the hole reaches every version since 2014.
The counter that rolls over
When GitLab receives a regular expression, it compiles it before searching anything: it counts how many repetitions you ask for (a{3} is three) and reserves memory for them. That's the job of the regex engine in Ruby, the language GitLab is written in.
The flaw, in one sentence: the repetition counter is a fixed-size number, and if you ask for more than it can hold, it rolls over. Like an odometer that only goes up to 99,999: drive 100,003 km and it doesn't read 100,003, it reads 3. GitLab does the same with a regular expression's repetitions: the counter ends up at 3, the engine reserves room for 3 and the excess spills over. It's an integer overflow (CWE-190), and GitLab says that "under certain conditions" it allows code execution on the server without authentication.
Rated 10.0 out of 10 in both advisories. GitLab hasn't published the exact attack path and has no evidence of exploitation as of today. It offers no temporary setting either: the only measure is to update.
Two patches in nine days
- October 12: GitLab 19.4.2, 19.3.5 and 19.2.8 fix CVE-2026-97229, an overflow when compiling regular expressions in CI/CD configuration. It affected 19.2 through 19.4. Same batch: 23 more fixes.
- October 21: GitLab 19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10 and 18.11.13 fix CVE-2026-110264, another overflow in the same compiler. It affects every version since 7.0, from 2014. With it, 12 more fixes.
Both were reported by the same researcher, joaxcar, through GitLab's HackerOne program. And here's the twist: if you updated to 19.4.2 on the 12th, you stayed inside the range of the second flaw until the 21st. Nine days of peace.
Does it affect me?
- On GitLab.com or GitLab Dedicated? Already patched. This is about self-managed instances.
- Check your version in Admin → Overview or with
gitlab-rake gitlab:env:info. Depending on your branch you need 19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10 or 18.11.13. - Updated on the 12th? Not enough. That patch covered CVE-2026-97229; the one from the 21st is a different flaw.
- Branch older than 18.11? There's no patch for it. Time to jump versions.
- Exposed to the Internet? Start with that instance, as CERT-EU recommends.
GitLab has released detections for self-managed instances: one watches for crashes of the native Onigmo process (the regex engine), another for bursts of errors when rendering Org-mode documents. It isn't the official attack path, but it hints at where to look in the logs.
Try it yourself
There's a lab to check whether a GitLab version is patched. docker compose up runs through a list of sample versions and you'll see which are exposed and which are safe, including the 19.4.2 case: patched on the 12th, but open to the flaw from the 21st. The comprobar.sh script works on your instance: give it your version (gitlab-rake gitlab:env:info prints it) and it tells you whether you're up to date.
This is as far as it goes, and why. The lab only detects. It doesn't reproduce the attack, for two reasons that add up: there's no public proof-of-concept and GitLab deliberately withheld the exploitation path; and even if there were one, staging the effect of an unauthenticated max-severity RCE would mean writing a weapon for software many people expose to the Internet. What's useful here is knowing whether your version is current, and updating.
Code and instructions: github.com/inigoaldama/en-30-segundos-labs.
The moral
Three episodes, three variations on the same theme. With PHP2Shell, the flaw was underneath your code. With Laravel, at the door. With GitLab, in something as boring as counting repetitions in a regular expression, and it had been there for twelve years. None of the three is fixed by a setting. All three are fixed by the same thing: updating, and not closing an advisory just because you already updated last week.
Iñigo Aldama · aldama.net
Sources: GitLab · patch 19.5.1 (Oct 21) · GitLab · patch 19.4.2 (Oct 12) · CERT-EU 2026-016 · The Hacker News · BleepingComputer