Security alert · Critical
GitLab CE/EE: actively exploited flaw allows unauthenticated remote code execution
· 3 minutes read · Centoculus Security Team
Known since · attacks confirmed since
Affected: GitLab Community Edition and Enterprise Edition (see vendor advisory for affected versions)
What happened
GitLab Community Edition (CE) and Enterprise Edition (EE) contain a vulnerability tracked as CVE-2026-97229. It is an integer overflow or wraparound caused by insufficient validation of regular expressions. An unauthenticated attacker can use a specially crafted regular expression in a CI/CD configuration to execute arbitrary code on the GitLab server.
The vulnerability has a CVSS base score of 10, the highest possible rating. CISA lists it in its Known Exploited Vulnerabilities catalog, which means it is being exploited in the wild. GitLab has published a patch release. The announcement for GitLab 19.4.2 is linked in the sources below.
Who is affected
You are affected if you run a self-managed GitLab CE or EE instance that has not yet received the vendor's fix. The source data does not list the exact affected and fixed versions for each release line. Check the GitLab patch release announcement linked below for your version.
The risk is highest for instances that are reachable from the internet, because no login is required to exploit the flaw. A successful attack gives the attacker code execution on the GitLab server. That server typically holds source code, CI/CD secrets, deploy keys and credentials for other systems.
If your GitLab instance is hosted by a provider, confirm with them that the fix has been applied.
What to do now
- Identify every self-managed GitLab instance you or your customers run, including test and staging systems.
- Back up the configuration and secrets before updating. On Omnibus installations this means at least
/etc/gitlab/gitlab.rband/etc/gitlab/gitlab-secrets.json. A data backup withsudo gitlab-backup createis also advisable. - Look up the fixed version for your release line in the GitLab patch release announcement linked below.
- Update GitLab through your package manager, for example
sudo apt update && sudo apt install gitlab-ee(orgitlab-ce) on Debian/Ubuntu, or the equivalentyum/dnfcommand on RHEL-based systems. For Docker installations, pull the patched image and recreate the container. - After the update, run
sudo gitlab-ctl statusto confirm that all services are running. Open the web interface to check that it responds normally. - If you cannot update immediately, restrict access to the instance from the internet, for example with a firewall or VPN, until the patch is installed.
- Because the flaw is actively exploited, check exposed instances for signs of compromise, as described below. If you find any, rotate CI/CD variables, access tokens, deploy keys and runner registration tokens.
How to check whether you are affected
- Check the installed version with
sudo gitlab-rake gitlab:env:info, or read/opt/gitlab/version-manifest.txton Omnibus installations. In the web interface, the version is shown on the Help page. Compare it with the fixed versions in the vendor announcement. - Review recent changes to CI/CD configuration files (
.gitlab-ci.yml) and pipelines for unexpected or unusually complex regular expressions, especially from unknown users or projects. - Inspect the GitLab logs under
/var/log/gitlab/for unusual activity. This includesgitlab-rails/production_json.logand the Sidekiq logs. - Look for unknown processes, new user accounts, new SSH keys or personal access tokens, and unexpected outbound connections on the GitLab server.
Sources
- https://nvd.nist.gov/vuln/detail/CVE-2026-97229
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog
More sources (5)
Related posts
Alerts ·
OpenSSH on Alpine Linux: login without password via overlong passwords
On Alpine Linux servers with the standard openssh-server package, attackers can log in to accounts without a password, such as key-only accounts. OpenSSH 10.6p2 and updated Alpine packages fix it.
Alerts ·
APT flaw on Debian and Ubuntu lets MitM attackers swap packages and run code as root
A flaw in APT lets an attacker who can modify package downloads replace a verified package and run code as root. Debian and Ubuntu published advisories on November 4. Update APT on all servers.
Alerts ·
Ruby on Rails Active Storage: critical file write flaw via ImageMagick uploads
A critical flaw in Ruby on Rails Active Storage lets unauthenticated attackers write arbitrary files on the server through a crafted upload when ImageMagick processes it. Update to Rails 8.1.4.1 or 8.0.5.2.