All posts

Two 10.0 RCEs in GitLab, move to 19.5.1 or another patched release

GitLab fixed two maximum-severity remote code execution flaws ten days apart. Both come from an integer overflow in the regex compiler, and the same researcher reported them. If you run GitLab CE or EE on your own server, you need to move to the latest patch released on 22 October.

GitLab.com already runs the patched version, and GitLab Dedicated tenants on 19.3.5-internal0 and 19.4.2-internal0 or later need to do nothing. Self-managed installs have to be updated by hand. Shadowserver tracks more than 2,700 internet-exposed GitLab CE instances.

The two flaws

CVE-2026-110264 (22 October). The regex compiler hits an integer overflow when compiling a specially crafted regular expression, and an unauthenticated user can run code on the server. The fixed releases are 19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10 and 18.11.13.

CVE-2026-97229 (12 October). A specially crafted regular expression in the CI/CD configuration leads to unauthenticated code execution because of insufficient validation. Versions before 19.2.8 on the 19.2 line, before 19.3.4 on 19.3 and before 19.4.2 on 19.4 are affected.

The newer releases close both. In September GitLab also patched another maximum-severity flaw (CVE-2026-85706) that lets an unauthenticated attacker read sensitive data. CISA added it to the exploited vulnerabilities list a day later. So if you have skipped patches since September, your problem is not limited to these two flaws.

How to fix it

First find out your version and how it was installed.

sudo gitlab-rake gitlab:env:info | head -20

Take a backup before updating.

sudo gitlab-backup create
sudo cp /etc/gitlab/gitlab-secrets.json /etc/gitlab/gitlab.rb ~/gitlab-config-backup/

Then upgrade according to your installation method. With the Omnibus package it goes through the package manager.

sudo apt-get update
sudo apt-get install gitlab-ce          # gitlab-ee if you use EE
sudo gitlab-ctl status

With Docker, move the image tag to the patched version and recreate the container. With Helm, update the chart version. If you are jumping a major or minor version, look at GitLab's official upgrade path tool, because some versions require stopping in order and waiting for database migrations to finish. Your target should be one of the patched releases above.

If you cannot upgrade

GitLab gives no workaround for these two flaws. The only measure we can think of is to close or restrict access to the server until it is patched. For example, allow only VPN or company IPs in the firewall. This is our suggestion and not GitLab's. If the server is exposed to the internet, do at least this much.

After the update

sudo gitlab-rake gitlab:env:info | head -20
sudo gitlab-rake gitlab:check SANITIZE=true

Confirm the version reached the patched number and the health check passes.

Sources

Related posts

Written by sheduxdev.

GitLab 10.0 RCE fixed, move to 19.5.1 | TurkishPvP LLC