# GitLab Security Incident: Attempted Exploitation of CVE-2026-97229

Alpine Linux rebuilds GitLab instance following a critical regex-based vulnerability exploitation attempt.

- **Source:** [Hacker News](https://news.ycombinator.com)
- **Published:** 2026-10-28
- **Topic:** [Software & Engineering](https://brifing.si/c/engineering)
- **Original article:** <https://alpinelinux.org/posts/GitLab-security-incident-CVE-2026-97229.html>
- **On Brifing:** https://brifing.si/s/2e70e36e-4f9a-482b-98d1-3f416501e0a2

## Exploitation Attempt Details

Between October 20 and 21, an attacker targeted the Alpine Linux GitLab instance using CVE-2026-97229. The attacker submitted crafted CI configurations, causing eight worker process crashes. In four instances, the exploit progressed significantly, prompting the team to treat the entire instance as compromised despite finding no definitive evidence of successful code execution.

## Vulnerability Root Cause

The issue stems from a critical CVSS 10.0 vulnerability within Onigmo, the regular expression engine embedded in Ruby. While GitLab released patches on October 12, the fix requires specific Ruby versions. Alpine's custom container image used standard Ruby, rendering the GitLab 19.3.6 upgrade ineffective until the underlying Ruby engine was updated.

## Infrastructure Remediation Strategy

To eliminate potential persistence, the team rebuilt the GitLab instance from scratch. All user passwords were invalidated, requiring a mandatory reset upon service restoration. This aggressive approach ensures that any undetected footholds gained by the attacker during the vulnerability window are completely removed, maintaining the integrity of the development environment and package repositories.

## Integrity Verification Process

Comprehensive audits confirmed that the aports repository, packages, and October 21 releases remained untampered. Developers verified commits against local clones and 45 independent builders to ensure consistency. These checks covered the period from October 20 to 24, with extended verification currently underway to account for the window until the instance closure.

## Dependency Patching Requirements

Users running GitLab with custom Ruby environments must update to Ruby 3.3.13, 3.4.12, or 4.0.9 to mitigate the regex flaw. Simply updating the GitLab application is insufficient if the bundled Ruby version remains unpatched. Alpine Linux users should pull the updated 19.3.6 container image published on October 27 to ensure the fix is applied.

## Broader System Impact

The vulnerability is not limited to GitLab; any application compiling regular expressions from untrusted input is potentially exposed. Alpine Linux versions 3.22, 3.23, 3.24, and edge now ship with patched Ruby versions. Users are advised to run the apk upgrade command immediately to secure their local systems against this specific Onigmo-related security risk.

## Credential Security Warning

The infrastructure team observed automated login attempts using credentials leaked from external sites. Users who reused passwords from their gitlab.alpinelinux.org account on other platforms are strongly urged to change them immediately. This proactive measure prevents secondary account takeovers while the GitLab instance remains offline and undergoes final security testing before public reopening.

## Operational Continuity Status

While the GitLab instance remains temporarily closed for security hardening, core services including package mirrors, cgit, and mailing lists remain fully operational. The team continues to monitor for unauthorized activity and will provide specific instructions for account recovery once the platform is deemed safe for public access. Direct inquiries are handled via infra@alpinelinux.org.

## Sources covering this story

- https://alpinelinux.org/posts/GitLab-security-incident-CVE-2026-97229.html — 

---

_Summary written by Brifing from the original reporting. Copyright in the original article belongs to its publisher; read the full piece at the link above._
