Home CVECVE-2026-97229: Critical GitLab RCE (CVSS 10.0) — Upgrade Self-Managed Instances Now

CVE-2026-97229: Critical GitLab RCE (CVSS 10.0) — Upgrade Self-Managed Instances Now

by Knowledge Base Linux
CVE-2026-97229 GitLab CI/CD remote code execution illustration

A perfect 10.0 does not happen often, and CVE-2026-97229 earned it: an unauthenticated remote code execution flaw in GitLab’s CI/CD regular expression compiler that GitLab patched in an emergency release on October 12, 2026. Within a day, Rapid7 had independently reproduced arbitrary code execution against an unpatched official GitLab CE image, and a weaponized public proof of concept followed on October 16. If you self-host GitLab, stop reading and start upgrading — then come back for the details.

CVE-2026-97229 at a Glance

CVE-2026-97229 is an integer overflow (CWE-190) in the component GitLab uses to compile regular expressions found in CI/CD pipeline configuration. Insufficient validation lets a specially crafted regular expression overflow during compilation and execute arbitrary code on the GitLab server as the git account — the account that owns your repositories. GitLab scores it CVSS 10.0 (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H). It affects self-managed GitLab CE and EE: 19.2.0–19.2.7, 19.3.0–19.3.4, and 19.4.0–19.4.1. The fixes are 19.2.8, 19.3.5 and 19.4.2. GitLab.com already runs a patched version and GitLab Dedicated customers need no action. One nuance matters for risk assessment: although the vendor scores exploitation as unauthenticated, the attacker needs a way to plant a malicious CI/CD configuration — for example through the CI Lint interface of a public project, or by self-registering an account and creating a project. On instances with open sign-up, that constraint effectively disappears. Censys counted roughly 25,766 exposed hosts running affected versions at disclosure. The flaw was reported by researcher joaxcar through GitLab’s HackerOne program. As of disclosure there was no confirmed in-the-wild exploitation, and CVE-2026-97229 was not in CISA’s KEV catalog — but with a public PoC, that grace period is measured in days.

Auditing CI/CD regular expressions for CVE-2026-97229 illustration

Am I Affected by CVE-2026-97229?

On an Omnibus (package) installation, check the version directly:

cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

Or browse to https://your-gitlab-instance/help while signed in. For Docker deployments, check the image tag in your Compose file or with docker ps. If your version falls in any of the three affected ranges above, you are vulnerable to CVE-2026-97229. Your exposure is worst if the instance is internet-facing, allows public sign-ups, or hosts public projects with CI enabled — but even internal instances should treat this as urgent, because a git-account compromise exposes source code, CI/CD variables and every secret your pipelines use.

How to Patch CVE-2026-97229 Step by Step

Step 1 — Back up first. On Omnibus installs:

sudo gitlab-backup create

Step 2 — Upgrade to the fixed release for your branch (19.2.8, 19.3.5 or 19.4.2), following GitLab’s required upgrade path and stop points for your installation type. On Debian/Ubuntu package installs:

sudo apt update
sudo apt install gitlab-ce=19.4.2-ce.0   # use the exact fixed version for your branch
sudo gitlab-ctl reconfigure

For Docker installs, update the image tag to the fixed version and recreate the container, keeping your data volumes untouched.

Step 3 — Verify the new version on the /help page and confirm services are healthy:

sudo gitlab-ctl status

Step 4 — Reduce the blast radius permanently. The pipeline is the prize here, so review the same hardening habits we cover in our GitLab CI/CD pipeline tutorial: protected variables, masked secrets, and least-privilege runners.

Temporary Mitigations for CVE-2026-97229

There is no configuration toggle that disables the vulnerable compiler, so mitigations are about shrinking the attack surface until the upgrade lands:

  • Disable open sign-ups (Admin → Settings → General → Sign-up restrictions) and require administrator approval for new users.
  • Restrict network access to the instance — VPN or IP allowlist — if it does not need to be public.
  • Review public projects and their CI settings; unknown public projects with pipelines are the likeliest delivery vehicle.
  • Watch for GitLab’s own guidance in the patch release notes, and treat any delay as borrowed time now that a PoC is public.

Why does code execution as git matter so much? Because that account sits at the centre of your software supply chain. An attacker running as git can read every repository the instance hosts, tamper with code and release artifacts, harvest CI/CD variables and runner tokens, and pivot into the cloud accounts and production systems your pipelines deploy to. Even if you patched within hours, review who accessed the instance during the exposure window and treat unexplained pipeline executions or newly created deploy keys as incidents, not noise. The upgrade closes CVE-2026-97229; only the audit tells you whether someone used it first.

Detection: Hunting for CVE-2026-97229 Compromise

Because code executes as the git user inside an application worker, look for: unusual requests to CI Lint endpoints; new administrator or bot accounts you did not create; unexpected processes running as git; outbound network connections from the GitLab host to unknown addresses; and changes to CI/CD variables or newly added deploy keys and tokens. If you find signs of compromise, rotate everything the instance could reach — CI/CD variables, cloud credentials stored in pipelines, personal access tokens and the GitLab secrets file — and rebuild from a known-clean backup. Rapid7’s technical analysis of CVE-2026-97229 documents how the exploit was reproduced and is worth reading before your hunt.

Conclusion

CVE-2026-97229 hands unauthenticated attackers the keys to the software factory itself: source code, pipeline secrets and everything downstream. Upgrade self-managed GitLab to 19.2.8, 19.3.5 or 19.4.2 now, lock down sign-ups in the meantime, and hunt for signs that someone got there first.

You may also like

KbLinux

Typically replies within a day

Hello, Welcome to the site. Please click below button for chatting me through Telegram.