Opens in a new tab
Open Nav
Sign Up

GitLab CVE-2026-97229: Critical 10.0 RCE Vulnerability Puts CI/CD Servers at Risk

gitlab_cve-2026-97229

Filip Dimitrov

October 14, 2026

GitLab has released emergency security updates to address a critical vulnerability that could allow attackers to execute arbitrary code on affected servers. Tracked as CVE-2026-97229, the flaw carries the maximum CVSS score of 10.0 and affects both GitLab Community Edition (CE) and Enterprise Edition (EE).

How CVE-2026-97229 Works

The vulnerability affects how GitLab processes regular expressions used in CI/CD configurations. Regular expressions help define conditions for automated development workflows, but improper handling of these expressions can introduce security vulnerabilities.

In this case, insufficient validation allows a specially crafted regular expression to trigger an integer overflow during compilation. This can corrupt the internal instructions used by the regular expression engine and ultimately lead to arbitrary code execution.

Researchers found that a malicious regular expression initially passes GitLab’s validation when compiled using US-ASCII encoding. However, when the expression is evaluated against a specially constructed UTF-8 repository path, Ruby’s Onigmo regular expression engine recompiles it after the original validation checks have already completed.

An integer overflow during this second compilation produces invalid instructions. By manipulating these instructions, an attacker can execute operating system commands within the GitLab application process.

Importantly, the demonstrated attack does not rely on executing a conventional CI/CD pipeline. Instead, it targets GitLab’s own application infrastructure, with successful exploitation allowing command execution under the GitLab git system account.

Does Exploitation Require Authentication?

GitLab classifies CVE-2026-97229 as an unauthenticated remote code execution vulnerability. However, independent research identified an important prerequisite for its demonstrated attack.

The attacker must first be able to place a malicious .gitlab-ci.yml configuration and a specially crafted repository path in a public GitLab project.

This requires write access to a project, which could be obtained through an existing account or by creating one on instances that permit public registration and project creation.

Once the malicious content is in place, the vulnerability can be triggered through a request to GitLab’s publicly accessible CI lint API without authentication.

Affected GitLab Versions and Available Patches

According to the official GitLab security advisory, CVE-2026-97229 affects the following versions:

Affected GitLab CE/EE versionsFixed version
19.2.0 through 19.2.719.2.8
19.3.0 through 19.3.419.3.5
19.4.0 through 19.4.119.4.2

GitLab released these security updates on October 12, 2026, and strongly recommends that administrators of affected self-managed installations upgrade immediately.

The vulnerability affects both Community and Enterprise editions across supported deployment methods, including Linux packages, container deployments, and Helm-based installations.

GitLab.com has already been updated, while GitLab Dedicated customers do not need to take additional action.

Recommended Mitigation and Detection Measures

Organizations operating self-managed GitLab installations should prioritize the following actions.

1. Apply the security updates immediately

Upgrade affected installations to GitLab 19.4.2, 19.3.5, or 19.2.8, depending on the release branch. Administrators should follow GitLab’s supported upgrade procedures, including appropriate backups and post-upgrade validation.

Internet-facing installations should receive the highest priority.

2. Restrict untrusted access until patching is complete

If an immediate upgrade is not possible, limit network access to the GitLab web interface and review whether untrusted users can register, create public projects, or modify repositories.

Restricting anonymous access to public projects may reduce exposure to the attack path demonstrated by Rapid7.

However, these are temporary risk-reduction measures and do not eliminate the underlying vulnerability.

3. Review suspicious CI/CD and repository activity

Security teams should investigate unexpected changes to .gitlab-ci.yml files, particularly in newly created or publicly accessible projects.

Suspicious repository changes involving unusual regular expressions or specially constructed file paths may warrant additional investigation.

Administrators should also review unusual requests to the GitLab CI lint API, especially when associated with recently created projects or unfamiliar users.

4. Monitor GitLab server behavior

Review GitLab application and audit logs for suspicious activity, including unexpected project creation, changes to project visibility, and anomalous API requests.

Security teams should also investigate unusual processes spawned by GitLab application workers, unexplained service failures, and unexpected outbound connections from the server.

These are general hunting opportunities rather than confirmed indicators specific to CVE-2026-97229. Suspicious activity should be assessed alongside other evidence before concluding that exploitation occurred.

5. Investigate potential compromise

Where exploitation is suspected, organizations should preserve relevant logs and forensic evidence, assess the integrity of their GitLab installation, and review access to connected repositories and development infrastructure.

Potentially exposed credentials, access tokens, and deployment secrets should be evaluated for rotation. Any confirmed compromise should trigger a broader investigation into downstream systems and CI/CD workflows.

Stay Safe. Stay Secure.
OP Innovate Research Team

Under Cyber Attack?

Fill out the form and we will contact you immediately.