GitLab Security Incident: Attempted Exploitation of CVE-2026-97229
An attacker tried to exploit a critical GitLab vulnerability in how it evaluates regular expressions in CI configuration, causing worker crashes and getting partway through the exploit. The instance was treated as compromised and rebuilt, though no evidence of successful code execution was found.
alpinelinux.org
Published on alpinelinux.org
On October 20 and 21, an attacker tried to exploit a GitLab vulnerability (CVE-2026-97229) on our instance, a week after the fix was released. The attack came close to working.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a flaw in the Onigmo regular expression engine bundled with Ruby, which GitLab uses to evaluate CI configuration, allowing crafted input to crash worker processes and potentially execute code.
Impact
The attacker could potentially have executed code on the server, exposing user data, secrets, and private repositories, though no evidence of success was found and the instance was rebuilt as a precaution.
What the attacker needed
A newly registered account; GitLab running vulnerable version
The fix
The vulnerability was fixed by upgrading to a GitLab version that includes the patched Ruby (3.3.13 or later), and the instance was rebuilt from scratch.
How it was found
- Register a new account on the GitLab instance.
- Send crafted CI configurations to the instance.
- Observe worker process crashes and partial exploit progress.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A regular expression is a pattern-matching tool used in programming. A bug in the engine that processes these patterns let an attacker send specially crafted CI (automated build) configurations that crashed parts of GitLab and could potentially let them run their own code on the server. The site owners could not be sure the attack failed, so they rebuilt the whole system from scratch.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.