GitLab’s Perfect-Score Flaw Explained: How a Regex Bug Earned a 10.0 Rating — and the Patch Trap That Caught Alpine Linux

Quick Answer

On October 29, 2026, the U.S. Cybersecurity and Infrastructure Security Agency (CISA) added a critical GitLab vulnerability, CVE-2026-97229, to its Known Exploited Vulnerabilities (KEV) catalog. The flaw scores a perfect 10.0 out of 10 and can let an attacker with no login at all run arbitrary code on a GitLab server, by sending a specially crafted regular expression inside a CI/CD configuration. GitLab patched it on October 12 in versions 19.2.8, 19.3.5, and 19.4.2 — but there is a catch that already caught one high-profile victim: if your GitLab runs on your own Ruby instead of GitLab’s bundled packages, upgrading GitLab alone does not fix it. You must also update Ruby to 3.3.13, 3.4.12, or 4.0.9 (or later). U.S. federal civilian agencies must patch by November 1, 2026, and every other self-hosted GitLab admin should treat that date as their deadline too.

Introduction

A CVSS score of 10.0 is rare. It is the maximum the scoring system allows, and it is reserved for flaws that are remotely exploitable, require no authentication, need no user interaction, and give an attacker full control. CVE-2026-97229 ticks every one of those boxes — and this week it moved from “theoretical worst case” to “actively exploited in the wild.”

The trigger for CISA’s listing was a real attack. Alpine Linux, the security-focused Linux distribution behind millions of containers, disclosed on October 28 that an unknown attacker had probed its own GitLab server on October 20 and 21, 2026, sending crafted CI configurations that crashed GitLab worker processes eight times. In four of those crashes, the attacker got partway through the exploit before failing at the next step. Alpine found no evidence the attack succeeded — but, tellingly, it could not rule it out either. So it treated the server as compromised, rebuilt it from scratch, and rotated every password and secret key.

That is the right response, and it is also a warning. If a team as careful as Alpine can be caught by this flaw, anyone running a self-hosted GitLab instance should check their version today — and check their Ruby version too.

What Is CVE-2026-97229?

At its core, this is an integer overflow (or wraparound) bug in the way GitLab handles regular expressions in CI/CD configuration. A regular expression, or “regex,” is a pattern used to match text — developers use them constantly, for example to validate branch names, filter pipeline jobs, or match file paths. GitLab’s CI/CD system processes regex patterns supplied in pipeline configuration.

The flaw sits in Onigmo, the regular expression engine built into Ruby, the programming language GitLab is written in. When GitLab processed a specially crafted regex, insufficient validation allowed an integer to overflow — a number growing past the maximum value its storage can hold and wrapping around to a much smaller one. That miscalculation corrupted memory in a way an attacker could steer, ultimately letting them execute their own code on the GitLab server.

Three details make this especially dangerous:

  • No login required. The attacker does not need an account on the target GitLab instance. The malicious regex can be delivered without authenticating.
  • No user interaction required. Nobody on the victim’s team has to click anything, open a file, or approve a merge request.
  • Full server impact. The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) reads like a checklist of worst cases: network-accessible, low attack complexity, no privileges, no interaction, changed scope, and high impact on confidentiality, integrity, and availability.

In plain terms: an unauthenticated stranger on the internet could potentially take over a server that holds your source code, your CI/CD secrets, your deployment credentials, and your private repositories. That is why it scores 10.0, and why CISA moved so fast.

Which GitLab Versions Are Affected?

GitLab’s advisory covers GitLab Community Edition (CE) and Enterprise Edition (EE) in three release branches:

  • 19.2 — all versions before 19.2.8
  • 19.3 — all versions before 19.3.5
  • 19.4 — all versions before 19.4.2

The fixes shipped on October 12, 2026, in GitLab 19.2.8, 19.3.5, and 19.4.2. GitLab.com and GitLab Dedicated were patched by GitLab itself, so if you only use the hosted service, you do not need to do anything. This is a self-hosted problem: it affects organizations that run GitLab on their own servers, which includes many companies, universities, open-source projects, and government teams.

A related flaw, CVE-2026-110264, stems from the same underlying Ruby/Onigmo issue and was fixed in a second round of patches on October 21 (including 18.11.13, 19.0.10, 19.1.9, 19.2.9, 19.3.6, 19.4.3, and 19.5.1). CISA’s KEV note for CVE-2026-97229 explicitly warns that other products could potentially be affected by the same underlying Ruby integer overflow — so this story is bigger than GitLab alone. If you run other Ruby software, check whether your vendor has issued a fix as well.

The Alpine Linux Attack: A Timeline

Alpine Linux’s disclosure is valuable because it shows, step by step, how a real attacker worked this flaw — and where the patching trap sits.

October 20–21, 2026: the probing begins. An unknown attacker targeted gitlab.alpinelinux.org with crafted CI configurations. The requests crashed GitLab worker processes eight times. In four of those crashes, the exploit advanced to the next stage before failing. Alpine’s own summary was blunt: “The attack came close to working.”

The attacker also downloaded Alpine’s GitLab container image. That detail matters: it suggests the attacker was studying the exact environment to refine the exploit, not just spraying the internet blindly.

October 22: Alpine upgraded to GitLab 19.3.6 — and it was not enough. Here is the trap. GitLab’s fix for this flaw ships as a patch to the Ruby bundled inside GitLab’s own official packages and container images. Alpine’s GitLab image, however, used a standard, system Ruby rather than GitLab’s patched build. So the GitLab upgrade changed the application but left the vulnerable regex engine underneath it untouched. The hole stayed open.

October 25–26: the attacker tried to get back in. Those attempts were blocked. But by then Alpine had already decided not to gamble: it treated the instance as compromised, rebuilt the server from scratch, and rotated all passwords and secret keys.

October 27: Alpine re-pulled the fixed image. Only the copy of the 19.3.6 image tag published on October 27 carries the fixed Ruby 3.3.13. Anyone who pulled that tag earlier and never re-pulled is still vulnerable — a subtle point that applies to container users everywhere, not just Alpine’s.

October 28: Alpine published its post-mortem. Its checks showed the aports repository, its packages, and the October 21 releases were not tampered with. Good news — but the incident still cost a full rebuild and a secret rotation.

October 29: CISA added the flaw to KEV. Federal civilian agencies were given until November 1, 2026, to remediate. The listing is a formal signal that exploitation is not hypothetical: it has been observed.

The Patch Trap: Why “We Already Upgraded” Might Not Be True

This is the most important lesson of the whole incident, and the one most likely to catch other teams.

If you installed GitLab from GitLab’s official Omnibus packages or container images, upgrading to 19.2.8, 19.3.5, 19.4.2, or later closes the hole, because those packages bundle the patched Ruby. But if you built GitLab from source, or you run it in your own container image with your own Ruby, upgrading GitLab alone leaves the vulnerable Onigmo engine in place. You must also update Ruby itself:

  • Ruby 3.3 series → 3.3.13 or later
  • Ruby 3.4 series → 3.4.12 or later
  • Ruby 4.0 series → 4.0.9 or later

Note also that Ruby 3.2 will not receive a fix. If you are still on Ruby 3.2, you need to move to a supported series, not just wait for a patch.

The same trap applies to container tags: if you pulled a GitLab image tag before its Ruby was fixed, re-pull it. A tag name does not guarantee the contents you downloaded last week are the same as the contents published today.

What About the Cisco Flaw Added the Same Day?

CISA’s October 29 KEV update added a second flaw alongside GitLab’s: CVE-2026-76418, an 8.6-rated denial-of-service bug in Cisco Secure Firewall ASA and FTD software, in which an unauthenticated remote attacker can force the device to reload unexpectedly. Cisco had already disclosed active exploitation of that flaw earlier in October. We covered that Cisco flaw in detail in a separate article, including the patch to install — so if you run Cisco firewalls, read that one next and patch both issues in the same maintenance window.

What To Do Now: A Checklist for GitLab Admins

If you run a self-hosted GitLab instance, work through this list in order:

  1. Find your version. In GitLab, go to Help, or check your admin area, and note both your GitLab version and your Ruby version. Do not guess.
  2. Upgrade GitLab. Move to 19.2.8, 19.3.5, or 19.4.2 (or later) for your branch. If you are on an older branch, follow GitLab’s upgrade path — do not skip required intermediate stops.
  3. Upgrade Ruby if you supply your own. If you built from source or use a custom image, update Ruby to 3.3.13, 3.4.12, or 4.0.9 or later, then verify the running Ruby actually changed. Alpine’s experience proves the version number in your GitLab dashboard is not the whole story.
  4. Re-pull container images. If you deploy GitLab by container tag, pull the tag again and confirm the image digest changed.
  5. Check for signs of attack. Look for unexplained GitLab worker crashes, unusual CI configuration submissions, newly registered accounts submitting crafted pipelines, and unexpected outbound connections. Eight worker crashes in two days was Alpine’s clue.
  6. If you find anything suspicious, assume compromise. Rebuild the affected instance, rotate all passwords, tokens, and secret keys, and review your repositories and CI/CD variables for tampering — exactly as Alpine did.
  7. Restrict exposure meanwhile. If you cannot patch immediately, limit who can reach your GitLab instance from the internet, disable public registration if you do not need it, and put the instance behind a VPN or allowlist until the patch is in.
  8. Watch for the sibling flaw. Apply the October 21 patch round (for CVE-2026-110264) as well if your branch is covered, and check other Ruby-based software you run for the same Onigmo issue.

Why CISA’s KEV List Deserves Your Attention

CISA’s Known Exploited Vulnerabilities catalog is not a list of scary-sounding bugs. Every entry carries evidence of real-world exploitation, and U.S. federal agencies are legally required to fix listed flaws by the stated deadline. For everyone else, KEV is the closest thing the industry has to a “patch this first” list. When a 10.0 flaw with no authentication requirement lands on it, it should jump to the top of your queue — above feature work, above routine maintenance, above everything except an active incident.

The November 1 deadline applies formally to federal civilian agencies, but attackers do not check whether you work for the government before scanning your server. Internet-facing GitLab instances are easy to find, and exploit attempts have already been observed. Treat November 1 as your deadline regardless of who you are.

Frequently Asked Questions

Do I need to worry if I only use GitLab.com?

No. GitLab.com and GitLab Dedicated were patched by GitLab itself. This flaw affects self-hosted GitLab CE and EE installations. If you do not run your own GitLab server, you do not need to act.

Is my GitLab safe if I upgraded to 19.3.6 or 19.4.3?

Probably, but verify how you installed it. If you use GitLab’s official packages or images, those versions include the fix. If you built from source or use a custom image with your own Ruby, confirm your Ruby is 3.3.13, 3.4.12, or 4.0.9 or later — the GitLab version alone does not prove the underlying engine is fixed.

Can attackers exploit this without an account?

Yes. That is what makes it a 10.0. The flaw allows an unauthenticated user to execute code via a crafted regular expression in CI/CD configuration, with no login and no interaction from any legitimate user.

What does “integer overflow” mean in plain language?

Imagine a counter that can only hold numbers up to 255. If you add 1 to 255, it wraps around to 0 instead of becoming 256. In software, that kind of wraparound can make a program miscalculate how much memory it needs, corrupting nearby data. Attackers craft inputs that trigger the miscalculation in exactly the way they want, turning a math error into code execution.

How do I know if my instance was attacked?

Look for unexplained GitLab worker crashes, newly registered accounts submitting unusual CI configurations, and unexpected outbound network connections. If you see any of these, treat the instance as potentially compromised: rebuild it, rotate all secrets, and audit repositories and CI/CD variables.

What if I cannot patch immediately?

Reduce exposure now: restrict internet access to the instance, disable public sign-ups, and place it behind a VPN or IP allowlist. Then schedule the patch as an emergency change, not a routine one. A 10.0 unauthenticated RCE with observed exploitation is not something to leave for the next sprint.

Does this affect other software besides GitLab?

Possibly. The root cause is in Ruby’s Onigmo regex engine, so any Ruby application that processes untrusted regular expressions could be affected. CISA’s KEV note flags exactly this risk. Check advisories from your other Ruby-based vendors.

Key Takeaways

  • CVE-2026-97229 is a CVSS 10.0 unauthenticated remote code execution flaw in self-hosted GitLab CE/EE, added to CISA’s KEV catalog on October 29, 2026, after real exploitation attempts against Alpine Linux.
  • Affected versions are GitLab 19.2 before 19.2.8, 19.3 before 19.3.5, and 19.4 before 19.4.2; the fixes shipped October 12, 2026.
  • The Alpine incident shows the critical trap: upgrading GitLab alone does not help if your installation uses its own Ruby — you must also update Ruby to 3.3.13, 3.4.12, or 4.0.9 or later.
  • If you see suspicious worker crashes or crafted CI submissions, assume compromise: rebuild, rotate every secret, and audit your code and variables.
  • The federal patching deadline is November 1, 2026 — treat it as your deadline too, whether or not you work for the government.

Conclusion

Most vulnerability stories follow a familiar script: a flaw is found, a patch ships, and admins slowly get around to installing it. CVE-2026-97229 breaks that script twice. First, because attackers were already probing a real target within days of the patch, crashing its workers and coming close to success. Second, because the obvious fix — upgrade GitLab — was not actually a complete fix for everyone, and one of the most careful teams in open source learned that the hard way.

The good news is that the remedy is clear and fully available: upgrade GitLab to a fixed release, upgrade Ruby if you supply your own, re-pull your container images, and check for signs of attack. Do it before November 1, and do not let a green version number on your dashboard convince you the job is done until you have verified the Ruby underneath it too. In security, the patch you think you applied is the most dangerous one of all.

Source: The Hacker News, “CISA Adds Actively Exploited GitLab RCE and Cisco Firewall DoS Flaws to KEV”

Related reading: Cisco ASA and FTD VPN Zero-Day Explained, and PHP2Shell Explained.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top