CVE-2026-97229: 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...
Critical CVSS 10.0
- CVE id
- CVE-2026-97229
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| GitLab CE Runtimes and servers |
>= 19.2.0, < 19.2.8 >= 19.3.0, < 19.3.5 >= 19.4.0, < 19.4.2 |
19.2.8, 19.3.5, 19.4.2 |
| GitLab EE Runtimes and servers |
>= 19.2.0, < 19.2.8 >= 19.3.0, < 19.3.5 >= 19.4.0, < 19.4.2 |
19.2.8, 19.3.5, 19.4.2 |
| Ruby Runtimes and servers |
>= 3.3.0, < 3.3.13 >= 3.4.0, < 3.4.12 >= 4.0.0, < 4.0.8 |
3.3.13, 3.4.12, 4.0.8 |
How to fix it
GitLab CE (Runtimes and servers)
Upgrade GitLab CE to the fixed release of the line you run: 19.2.8, 19.3.5, 19.4.2.
gitlab-rake gitlab:env:info
- Upgrade your self-managed GitLab (the gitlab/gitlab-ce image tag or the gitlab-ce package) to the patched release of your series.
GitLab EE (Runtimes and servers)
Upgrade GitLab EE to the fixed release of the line you run: 19.2.8, 19.3.5, 19.4.2.
gitlab-rake gitlab:env:info
- Upgrade your self-managed GitLab EE (the gitlab/gitlab-ee image tag or the gitlab-ee package) to the patched release of your series.
Ruby (Runtimes and servers)
Upgrade Ruby to the fixed release of the line you run: 3.3.13, 3.4.12, 4.0.8.
ruby --version
- Install the patched Ruby release of your minor line (rbenv, the ruby image tag) and update .ruby-version.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2026-97229 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-97229
- Web: https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-4-2-released/
- Web: https://gitlab.com/gitlab-org/gitlab/-/work_items/630686
- Web: https://hackerone.com/reports/4055749
- Web: https://hackerone.com/reports/4058589
- Web: https://github.com/rapid7/metasploit-framework/pull/22017
- Web: https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/
- Web: https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-97229
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.