Alpine Linux rebuilds GitLab after attempted exploitation of CVE-2026-97229
On October 20 and 21, a week after the fix was released, an attacker tried to exploit CVE-2026-97229[1], a critical (CVSS 10.0[2]) vulnerability in how GitLab evaluates regular expressions in CI configuration, on Alpine Linux's GitLab instance. A newly registered account sent crafted CI configurations to the instance, which was still running GitLab 19.3.4; worker processes crashed 8 times, in 4 of those crashes the attacker got partway through the exploit, and the attacker also downloaded Alpine's container image, apparently tuning it to that exact build. No evidence was found that the attacker's code ran, but this could not be ruled out, so the instance was treated as compromised and rebuilt from scratch.
Checks against records the attacker could not reach, including a developer's clone and all 45 builders, showed that the aports[3] repository, packages built from October 20 to 24, and the October 21 stable releases (3.21.9, 3.22.7, 3.23.7, 3.24.3) were not tampered with. The keys that sign Alpine packages and releases have never been stored on the GitLab server. If the attack had succeeded, email addresses, names and IP addresses of all users, password hashes, 2FA secrets, CI/CD variables, runner tokens, webhook and integration credentials, personal access tokens and private repositories could have been exposed.
The fix is not in GitLab's own code but in a patch to Onigmo[4], the regular expression engine built into Ruby, which GitLab applies only in its official packages, so upgrading to GitLab 19.3.6 on October 22 did not close the hole because the image used standard Ruby. Upstream Ruby shipped the fix on October 23 in Ruby 3.3.13, 3.4.12 and 4.0.9, and the rebuilt alpinelinux/gitlab:19.3.6 image published on October 27 contains Ruby 3.3.13, while any 19.3.6 image pulled before that date and all older tags remain vulnerable. All GitLab passwords have been reset, so a new one must be set through the sign-in page when the service reopens, and anyone who reused it elsewhere should change it there, since automated login attempts with passwords leaked from other sites have been observed. Planned changes include applying critical GitLab security releases within a day, logging outbound connections, keeping logs longer than 14 days and signing release tags.
Read the original alpinelinux.orgDiscussion
Discussion
Commenters focus on how a fix living in a bundled Ruby patch rather than GitLab's own code leaves anyone building their own images exposed, and one reader argues Alpine should switch from GitLab to Forgejo for this reason. Others question re-releasing the fixed image under the same 19.3.6 tag instead of a new version, and one notes the word 'attempted' in the title understates a case where code execution was not ruled out.
Sources
-
alpinelinux.org
GitLab security incident: attempted exploitation of CVE-2026-97229
-
KRGeekNews KO
GitLab 보안 사고: CVE-2026-97229 악용 시도

