← INCIDENTS

GitLab patches CVSS 10 code execution flaw in its CI/CD regular expression handling

GitLab released 19.4.2, 19.3.5 and 19.2.8 to fix CVE-2026-97229 (CVSS 10.0), an integer overflow in the CI/CD regular expression compiler that lets a crafted regex in a CI configuration run code on the server. Rapid7 reproduced it and found an attacker must first be able to plant a CI file, easy where self-registration is open. No exploitation is known yet.

GitLab issued a critical patch release on October 12 for self-managed Community and Enterprise Edition. The most serious fix, CVE-2026-97229 (CVSS 10.0), addresses an integer overflow in the CI/CD regular expression compiler: under certain conditions, a specially crafted regular expression in a CI/CD configuration could let an unauthenticated user execute arbitrary code on the GitLab server. It affects 19.2, 19.3 and 19.4 before 19.2.8, 19.3.5 and 19.4.2, and was reported by joaxcar through GitLab's HackerOne bug bounty.

Rapid7 reproduced the chain against the official 19.4.1 CE image. The regex passes GitLab's validation in a compact ASCII form, but when it is evaluated against a valid UTF-8 repository path, Ruby's Onigmo engine recompiles it after the checks, and an integer overflow in the size calculation produces invalid instructions that can be steered into running an operating system command as the git user. In practice the attacker must first commit a malicious .gitlab-ci.yml to a public project, a constraint that disappears on instances where anyone can register and create projects.

GitLab.com is already patched and GitLab Dedicated customers need not act. Rapid7 says there is no confirmed exploitation in the wild, but recommends upgrading self-managed instances urgently, outside normal patch cycles. The release also fixes a high-severity cross-site scripting bug in syntax highlighting (CVE-2026-92883).

Sources

  1. GitLab: GitLab Critical Patch Release: 19.4.2, 19.3.5, 19.2.8 docs.gitlab.com
  2. Rapid7: CVE-2026-97229: Critical unauthenticated remote code execution in GitLab rapid7.com
← More INCIDENTS news