GitLab is grappling with an extremely critical vulnerability that attackers can easily exploit.
GitLab has patched a critical vulnerability in GitLab CE and EE. An unauthenticated attacker could execute code on the server via a so-called crafted regular expression in a CI/CD configuration.
GitLab recently released versions 19.4.2, 19.3.4, and 19.2.8 of GitLab Community Edition (CE) and Enterprise Edition (EE) this October. This patch release fixes 24 vulnerabilities. One of these, CVE-2026-97229, received a CVSS score of 10.0. This is the highest possible score, reserved for high-impact and easy-to-exploit vulnerabilities.
Malicious expression
The issue lies in the compiler that processes regular expressions in CI/CD configurations. Regular expressions are search patterns for text, which developers use to set rules in their pipeline configurations, among other things.
GitLab refers to this as an integer overflow. This occurs when a number exceeds the space the system provides for it, causing the software to continue operating with an incorrect value. Because GitLab did not sufficiently validate the regular expressions, a specially crafted expression could, under certain conditions, lead to the execution of arbitrary code on the GitLab server.
No account required
The attacker does not need to be logged in and requires no assistance from a user clicking on anything. According to the CVSS vector, the attack is network-based and has low complexity.
A GitLab server typically contains an organization’s source code and pipelines. An attacker who can run their own code there essentially gains access to these assets.
Update quickly
GitLab advises all self-managed installations with an affected version to update to 19.4.2, 19.3.4, or 19.2.8 as soon as possible. GitLab.com is already running the patched version, and GitLab Dedicated customers do not need to take any action. Because the update includes database migrations, single-node installations will go offline during the upgrade. Multi-node installations can update without downtime using GitLab’s provided procedure.
The flaw was reported by researcher joaxcar via GitLab’s bug bounty program on HackerOne. Additionally, the release fixes five high-severity vulnerabilities, including a cross-site scripting flaw in syntax highlighting and a prompt injection in the GitLab Duo Agent Platform.
