GitLab disclosed the critical vulnerability in a Monday advisory, saying it stems from an integer overflow weakness in the CI/CD Regular Expression Compiler, the component that parses, compiles and evaluates regular expressions in projects' pipeline configuration files.
"GitLab has remediated an issue 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," the company said.
The vulnerability was discovered by a security researcher using the handle "joaxcar" and reported through GitLab's HackerOne bug bounty program.
GitLab fixed the issue in Community Edition (CE) and Enterprise Edition (EE) versions 19.2 before 19.2.8, 19.3 before 19.3.4, and 19.4 before 19.4.2. "These versions contain important bug and security fixes, and we strongly recommend that all self-managed GitLab installations be upgraded to one of these versions immediately," the company warned. GitLab.com is already running the patched version, and GitLab Dedicated customers do not need to take action.
The disclosure continues a difficult period for the platform. In January, GitLab patched a high-severity two-factor authentication bypass, and last month it addressed another maximum-severity flaw, CVE-2026-85706, a path traversal vulnerability that let unauthenticated attackers read credentials and other secrets from vulnerable servers. One day after that fix, the US Cybersecurity and Infrastructure Security Agency added the flaw to its Known Exploited Vulnerabilities catalog.