CVE-2026-97229 in gitlab
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
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.
Affected software: gitlab, ruby-lang ruby
Scores
- CVSS: 10.0 (critical)
- EPSS: 76.45% chance of exploitation in the next 30 days
- CISA KEV: Known exploited, listed 2026-10-29
- Published: 2026-10-13
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): Yes, published
- Mitigation: Yes, see below
How to mitigate it
Upgrade GitLab CE/EE to 19.2.8, 19.3.5 or 19.4.2 (CVE-2026-97229)
Patch or upgrade. Upgrade self-managed GitLab to 19.2.8, 19.3.5, 19.4.2 or later, which validates regular expressions in CI/CD configuration so a crafted regex can no longer overflow the Onigmo engine and run code. The flaw is exploited in the wild.
Applies to: GitLab CE/EE self-managed 19.2.0 to 19.2.7, 19.3.0 to 19.3.4 and 19.4.0 to 19.4.1. GitLab.com is patched by GitLab.
- Check the version under Admin, Overview, Dashboard or with 'sudo gitlab-rake gitlab:env:info'.
- Back up GitLab with 'sudo gitlab-backup create' and copy /etc/gitlab/gitlab-secrets.json and gitlab.rb.
- Upgrade the package to 19.2.8, 19.3.5, 19.4.2 or later (for example 'sudo apt-get install gitlab-ee=19.4.2-ee.0'), or pull the matching Docker image or Helm chart.
- Run 'sudo gitlab-rake gitlab:check' and confirm the new version.
- Until you have upgraded, turn off sign-up for new users and restrict who can create projects and pipelines.
- After an exposed period, check for unknown users, personal access tokens, runners and SSH keys, and rotate CI/CD variables and deploy tokens if you find any.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.