← All field notes

How to Patch GitLab Critical RCE on VMs, Docker and Kubernetes

Plan GitLab upgrade stops, back up configuration and secrets, deploy patched releases on Omnibus, Docker or Helm, and verify the result.

GitLab patch workflow showing backups, required upgrade stops and a patched release.

GitLab shipped four critical fixes in six weeks, including CVE-2026-110264, an unauthenticated remote code execution flaw rated CVSS 10.0, and CVE-2026-85706, a file-read flaw that is already exploited and in CISA's Known Exploited Vulnerabilities catalog. GitLab.com and GitLab Dedicated are patched. Self-managed instances are not. This guide shows how to upgrade safely on Omnibus, Docker and Kubernetes.

If you missed the background, read our breakdown of the October 2026 2Shell attacks first.

Before you start: what "patched" means

The patched releases from 21 October 2026 are:

  • 19.5: 19.5.1

  • 19.4: 19.4.3

  • 19.3: 19.3.6

  • 19.2: 19.2.9

  • 19.1: 19.1.9

  • 19.0: 19.0.10

  • 18.11: 18.11.13

18.10 and older have no fix. Upgrade to 18.11.13 or later.

The four flaws these releases cover:

  • CVE-2026-110264 (CVSS 10.0): unauthenticated RCE through GitLab's regular expression compiler.

  • CVE-2026-85706 (CVSS 10.0): unauthenticated file read through the repository commits API. Exploited in the wild.

  • CVE-2026-97229 (CVSS 10.0): code execution through a crafted regex in .gitlab-ci.yml.

  • CVE-2026-90970 (CVSS 9.9): command execution in the self-hosted AI Gateway.

Step 0: Plan the upgrade path and back up

Check your current version:

bash
sudo gitlab-rake gitlab:env:info

Create a full backup:

bash
sudo gitlab-backup create

Copy the secrets and config files. The backup does not include them, and you cannot restore without them.

bash
sudo cp /etc/gitlab/gitlab-secrets.json /etc/gitlab/gitlab.rb /root/gitlab-config-backup/

Before moving to the next stop, make sure background migrations have finished:

1 of 4 sections shown

Anees Khan

Co-Founder & CTO at Turf Dev, focused on Kubernetes, platform engineering, cloud infrastructure, and production reliability. I write about real-world infrastructure problems, how we investigate them, and the engineering approaches used to solve them.

Meet Turf Dev ↗

Discussion

Have a question or something to add? Share it below.

Comments appear immediately. Please keep the discussion respectful.

No comments yet. Be the first to join the discussion.

Keep exploring

More from the field.

All articles ↗

Platform Mandate

Request Architecture Review

Review platform posture, reliability constraints, and cost governance priorities with an infrastructure engineering team.

Request Architecture Review