Alpine Linux Rebuilds GitLab After Attempted RCE Exploit of CVE‑2026‑97229
What Happened – In late October 2026, threat actors targeted Alpine Linux’s public GitLab instance with a known maximum‑severity remote‑code‑execution flaw (CVE‑2026‑97229). The vulnerability resides in GitLab’s CI/CD regular‑expression compiler (Onigmo) bundled in Ruby; a specially crafted regex can trigger an integer overflow that crashes the GitLab worker process and, under the right conditions, executes arbitrary code.
Alpine Linux originally deployed GitLab 19.3.4, which pre‑dated the vendor’s patch released on 12 October 2026. An upgrade to 19.3.6 was applied, but the custom Alpine container image omitted the required Ruby patch, leaving the flaw unmitigated. On 20‑21 October, the attackers submitted malicious CI pipeline configurations that invoked the vulnerable regex. Eight worker crashes were recorded; four of those attempts progressed beyond the initial crash stage, though none completed a full code‑execution chain.
Because the attacks caused process crashes and the GitLab server’s outbound‑connection logs were missing, Alpine could not confirm whether any payload ever ran. The team also discovered that the adversary had downloaded the Alpine GitLab container image, suggesting reconnaissance for a downstream supply‑chain compromise. After a forensic review, Alpine found no evidence of repository tampering, altered package builds, or exposure of signing keys (which are stored off‑server).
Given the uncertainty and the lack of reliable audit logs, Alpine elected to rebuild the entire GitLab environment from scratch, reset every user password, and publish a hardened container image (alpinelinux/gitlab:19.3.6) that includes Ruby 3.3.13 with the upstream fix. The rebuild was completed on 27 October, and the project publicly advised all downstream users to pull the new image and rotate their credentials.
The incident underscores the high value of Alpine’s GitLab instance: it houses the “aports” build recipes that generate the Alpine packages used in millions of Docker containers worldwide. A successful supply‑chain compromise could have propagated malicious code to countless downstream services.
Alpine’s response was transparent: the team released a detailed timeline, shared the technical indicators (CVE ID, affected versions, crash counts), and clarified that no signing keys or private project data were confirmed compromised. No regulatory bodies have been notified, and no legal actions have been reported to date.
Why It Matters for Trust & Control Assurance – The episode highlights the critical need for comprehensive logging and continuous evidence collection; without reliable logs, organizations cannot definitively prove whether a supply‑chain breach occurred.
Who Is Affected – Open‑source infrastructure projects, container‑image providers, DevOps teams that rely on GitLab CI/CD, and any downstream services that consume Alpine‑based Docker images.
Recommended Actions
- Verify that all GitLab instances run the latest patched version and that custom container images include upstream security patches (e.g., Ruby updates).
- Implement immutable, centrally‑managed logging for CI/CD pipelines and outbound network activity; retain logs for a minimum of 90 days.
- Conduct a credential‑reset for all users with access to critical development infrastructure.
- Pull the newly published Alpine GitLab image (19.3.6) and re‑run CI jobs to ensure no tampered artifacts remain.
- Perform a supply‑chain risk assessment focusing on build‑recipe repositories and container‑image provenance.
Technical Notes
- Vulnerability: CVE‑2026‑97229 – integer overflow in GitLab’s Onigmo regex engine (maximum severity).
- Affected Versions: GitLab 19.3.4 and 19.3.6 when built with Alpine’s custom Ruby 3.3.12; patched in GitLab 19.3.5 with Ruby 3.3.13.
- Attack Vector: Malicious CI/CD pipeline configuration submitting crafted regex.
- Potential Impact: Execution of arbitrary code, exposure of user credentials, 2FA secrets, CI/CD tokens, and private repository content.
- Detection Gap: Missing outbound‑connection logs prevented definitive confirmation of code execution.
Source: BleepingComputer – Alpine Linux rebuilds GitLab after attempted RCE attack