Exploit database

Vulnerability

CVE-2026-97229

Integer Overflow or Wraparound in GitLab

Vulnerability details

Score
10.0
Severity
critical

CVSS 3.1 · GitLab

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Description

GitLab has remediated an issue in GitLab CE/EE affecting all versions from 19.2 before 19.2.8, 19.3 before 19.3.5, and 19.4 before 19.4.2 that, under certain conditions, could have allowed an unauthenticated user to execute arbitrary code on the GitLab server via a specially crafted regular expression in a CI/CD configuration, due to insufficient regular expression validation.

CVE Program

Exploit source choices

6 sources
GitLab CI/CD RegExp Integer Overflow Remote Code Execution
MSF-multi--http--gitlab_cicd_regexp_rce_cve_2026_97229MetasploitLinux / remotePreferred

This module exploits an integer overflow in the Ruby regular expression compiler through GitLab's CI lint API. An attacker with credentials for a user who can push to a public project plants a crafted CI configuration and repository path. An unauthenticated CI lint request then compiles the expression and executes a command as the GitLab git account. The module selects the native pcode and libruby layout for affected official GitLab CE and EE Docker images on Linux amd64. Each attempt allocates slightly more than 2 GiB and crashes a Puma worker after execution. GitLab 19.2 before 19.2.8, 19.3 before 19.3.5, and 19.4 before 19.4.2 are affected. The official 19.3.4 package already contains the Ruby overflow fix and is not supported. Rebuilt packages and source installations may require different native layouts.

2026-10-12gitlab_cicd_regexp_rce_cve_2026_97229.rb
jburgess-r7/cve-2026-97229-poc
GH-e8f9440933d91c876a3d56c7c128f67dGitHubUnofficial GitHub source

GitLab CI lint integer-overflow RCE PoC for CVE-2026-97229, validated against the official 19.4.1 CE amd64 image

2026-10-133 files · 65 stars
murat-levi/gitlab-rce-toolkit
GH-20569e325671690590b6cd9dfcd5642dGitHubUnofficial GitHub source

CVE-2026-97229 + CVE-2026-110264 — GitLab Onigmo RCE Exploit Toolkit (CVSS 10.0)

2026-10-299 files · 4 stars
gandli/cve-2026-97229-lab
GH-73e98e7b6a7158d911d88ed5b02331ddGitHubUnofficial GitHub source

CVE-2026-97229 GitLab CI lint regex integer overflow RCE — InstaBox version matrix reproduction & libruby gadget reverse engineering

2026-10-17120 files · 2 stars
noshadi-sec/cve-2026-97229
GH-6b013242a3d6bc529c36c373373a0ff1GitHubUnofficial GitHub source

CVE-2026-97229 an external exploit for GitLab CI lint regex RCE. It is used only against a live GitLab target with permission. It creates a project, pushes a malicious CI configuration, triggers the CI lint endpoint, and receives command output through an HTTP callback. This is for authorized security research only.

2026-10-262 files · 1 stars