There is a special kind of dread that only shows up after you have already done the right thing. You saw the advisory, you upgraded on time, you checked the version number — and the vulnerability is still there, smiling at you from one layer down. That is exactly what happened to Alpine Linux in October 2026, and it is why CVE-2026-97229 deserves a closer look than most CVSS 10.0 headlines.
On October 29, 2026, the U.S. Cybersecurity and Infrastructure Security Agency added CVE-2026-97229 to its KEV catalog — the shortlist of flaws confirmed exploited in the wild — with a remediation deadline of November 1 for federal agencies and forensic triage required. The flaw is an integer overflow in how GitLab evaluates regular expressions inside CI/CD configuration, and it lets an unauthenticated attacker run arbitrary code on the GitLab server with a specially crafted regex. GitLab had published fixes seventeen days earlier, on October 12, in versions 19.2.8, 19.3.5, and 19.4.2. So why was anyone still getting attacked on October 20?
01The bug is not where you think it is
The first thing to understand is that this is not really a GitLab bug. The underlying flaw sits in Onigmo, the regular expression engine built into Ruby — the language GitLab itself is written in. When GitLab compiles a regex from a CI/CD configuration file, it hands that pattern to Onigmo, and Onigmo's compiler mishandles an integer calculation in a way that corrupts memory. A crafted pattern can turn that corruption into code execution inside a GitLab application worker.
That distinction matters enormously, because it decides where the fix lives. GitLab's October 12 patch was not a change to GitLab's application code. It was a set of patches to the Ruby interpreter that GitLab bundles inside its own official Linux packages and container images. If you run GitLab from those official packages, upgrading GitLab upgrades Ruby with it, and you are fixed. If you run GitLab any other way — a self-compiled install, a distribution's package, a container image that installs its own Ruby — upgrading GitLab does nothing to the vulnerable component. The app version number moves; the interpreter underneath stays broken.
Upstream Ruby shipped the same fix later, on October 23, in Ruby 3.3.13, 3.4.12, and 4.0.9. Ruby 3.2 has reached end of life and will not receive a fix at all. And this was not an isolated quirk: the same family of Onigmo compiler bugs produced a second CVSS 10.0 GitLab flaw, CVE-2026-110264, fixed on October 21 in GitLab 19.5.1. If your stack compiles regexes from untrusted input, the interpreter is part of your attack surface, whether or not you think of it that way.
02Alpine's timeline: two upgrades, zero fixes
Alpine Linux runs its own public GitLab instance, and its incident report — published October 28 — is one of the most transparent write-ups of the month. Read it as a cautionary tale, because every step in it is a mistake a competent team could make.
On October 13, the day after GitLab's fix landed, Alpine upgraded its instance — but to 19.3.4 instead of 19.3.5, the version carrying the fix. A one-patch-level slip, the kind that happens when you are moving fast and the version numbers all look alike. The instance stayed vulnerable.
On October 20, a newly registered account began probing the server. Over October 20 and 21, the attacker sent crafted CI configurations that crashed GitLab worker processes eight times. In four of those crashes, Alpine's maintainers believe, the attacker got partway through the exploit and failed at the next step. The attacker also downloaded Alpine's GitLab container image — which the maintainers read as the attacker tuning the exploit against their exact build. That is a detail worth pausing on: the attacker was not spraying a generic exploit. They were calibrating it against the victim's own image.
On October 22, Alpine upgraded again, to GitLab 19.3.6. The instance was still vulnerable. Alpine's image installs standard Ruby separately, so the GitLab upgrade never touched the broken interpreter. The application was current; the runtime was not. It was only on October 26 that the team discovered the gap, and the rebuilt image — with Ruby 3.3.13 — was published on October 27.
The attacker's account was blocked on October 23. Return attempts on October 25 and 26 failed. And here is the part that should change how you think about incident response: Alpine found no evidence that the attacker's code ever ran — no unexpected files, keys, hooks, or processes — but it explicitly could not rule it out, because a successful exploit would leave no crash and no trace in the web logs, and some logs from the attack period no longer exist. So Alpine did the only defensible thing: it treated the instance as compromised and rebuilt it from scratch. All passwords were reset. The signing keys for Alpine packages and releases were never stored on the GitLab server, and the team verified the aports repository, packages, and the October 21 releases against records held outside GitLab — none were tampered with. GitLab reopened on October 29, upgraded to 19.3.7.
03What to do about it
If you run a self-managed GitLab instance, the checklist is short but the order matters:
- Upgrade GitLab to a fixed release — 19.2.8, 19.3.5, 19.4.2, or later on your branch. If you use GitLab's official packages or container images, this alone closes the hole.
- Then check which Ruby your server actually runs. This is the step Alpine missed. If your install uses a separately installed Ruby — a distro package, a custom image, a source build — update Ruby to 3.3.13, 3.4.12, 4.0.9, or later as well. Do not trust the GitLab version number as proof; verify the interpreter. A quick check inside the container or host running GitLab tells you the truth:
gitlab-rails runner "puts RUBY_VERSION"
If that prints anything older than the fixed Ruby releases on a self-built install, you are still exposed.
- If you use Alpine's image, re-pull it. Any
alpinelinux/gitlab:19.3.6image pulled before October 27 is vulnerable; the image published on October 27 contains Ruby 3.3.13. - If you cannot patch immediately, shrink the blast radius. Security firm Rapid7, which independently reproduced code execution against an unpatched official GitLab 19.4.1 image, suggests restricting anonymous access to public projects, preventing untrusted users from creating or writing to public projects, or blocking the CI lint route. These are mitigations, not fixes — treat them as buying hours, not safety.
- Hunt like Alpine did, and be honest about what you cannot prove. Look for worker crashes, 502 errors, and failed CI jobs clustered around suspicious new accounts or crafted CI configs. If you find crash patterns you cannot explain, assume the worst: a clean exploit leaves no crash and no web-log trace, so absence of evidence is not evidence of absence.
- Look beyond GitLab. CISA's KEV note warns that other products could be affected by the same underlying Ruby/Onigmo integer overflow. Any Ruby application that compiles a regular expression from attacker-controlled text is in scope — and Ruby's own advisory notes that
Regexp.timeoutdoes not protect against this bug.
The deeper lesson is about how we verify patches. Most teams check one number: the application version. CVE-2026-97229 punishes that habit, because the vulnerable component was never the application. Your patching checklist should name the runtime, not just the app — the interpreter, the libraries it bundles, the base image underneath. When a vendor says "the fix is in the bundled X," the follow-up question is always: "and what does my deployment actually bundle?"
Alpine answered that question publicly, at its own expense, and the whole community gets to learn from it for free. The cheapest way to honor that is to check your own Ruby version before the next attacker checks it for you.