Three critical GitLab flaws. Most readers are not affected.
These flaws are in GitLab servers that an organization runs itself. If your team uses GitLab.com or GitLab Dedicated, GitLab has already patched them and you have nothing to do. If you run your own GitLab server, two of the three are under active attack. Upgrade it now.
Answer three questions. If all three are "no", you are done.
Using GitLab.com with your own build machines (self-managed runners) does not make you affected. The flaws are in the GitLab server, not the runners. If you run your own GitLab server, though, its runners trust it, so a compromised server can run jobs on them.
Attackers went after Alpine Linux's own GitLab server
Attackers targeted the self-hosted GitLab server of Alpine Linux, a widely used open-source project, on 20 and 21 October using CVE-2026-97229. Alpine had installed 19.3.4 instead of the fixed 19.3.5. When it then moved to 19.3.6, the server was still vulnerable: Alpine's custom container image used its own copy of Ruby, and the real fix lives in Ruby.
Alpine found no tampering with its packages, but could not rule out code execution, so it rebuilt the server from scratch and asked users to reset their passwords. CISA added CVE-2026-97229 to its exploited list on 29 October, with a 1 November deadline for US federal agencies.
The three flaws, in plain words
| CVE | What an attacker can do | Patched | Status |
|---|---|---|---|
| CVE-2026-85706 | Read any file on the server without logging in, including configuration files that hold passwords and keys. A flaw in the repository commits API. Affects 18.7 and later. | 10 Sep 2026 | KEV Exploited |
| CVE-2026-97229 | Run code on the server with a crafted build file pushed to a public project. On servers where anyone can register, that is easy. Affects 19.2 to 19.4. | 12 Oct 2026 | KEV Exploited |
| CVE-2026-110264 | Run code on the server without logging in, through content GitLab displays, such as file previews, wikis and Markdown. Affects every version since 7.0 (2014). | 21 Oct 2026 | No known attacks |
CVE-2026-97229 and CVE-2026-110264 are two different bugs in the same place: Onigmo, the regular expression engine inside Ruby, which GitLab is built on. The 12 October versions (19.4.2, 19.3.5, 19.2.8) do not fix CVE-2026-110264.
Self-hosted: where your version stands
One upgrade covers all three flaws: move to the 21 October release on your branch, or anything newer on the same branch.
| Branch | Upgrade to at least | Status | Note |
|---|---|---|---|
| 19.5 | 19.5.1 | Fix released | Newest branch. |
| 19.4 | 19.4.3 | Fix released | 19.4.2 is not enough. |
| 19.3 | 19.3.6 | Fix released | 19.3.5 is not enough. 19.3.4 is open to all three. |
| 19.2 | 19.2.9 | Fix released | 19.2.8 is not enough. |
| 19.1, 19.0 | 19.1.9 · 19.0.10 | Fix released | Backports. |
| 18.11 | 18.11.13 | Backport | Oldest branch with a fix. |
| 18.10 and older | none | No fix | Upgrade to a supported branch. Until then, take it off the internet. |
Self-built installs and custom images also need Ruby 3.3.13, 3.4.12, 4.0.9 or later. Ruby 3.2 is end of life and gets no fix.
Every GitLab server is a little different. Let Claude handle the corner cases.
Our commands cover the common installs. Real servers have skipped versions, required upgrade stops, custom images and odd Ruby setups. Paste the prompt below into Claude, or another AI assistant you trust, then run one command at a time and paste the output back.
- Run the start prompt once per GitLab server.
- Never paste passwords, tokens, keys, gitlab-secrets.json or customer data into an AI. Redact them.
- Read each command before you run it. Ask the AI to explain anything that changes data or restarts GitLab.
- Never let an AI fetch or run exploit code.
You are helping me secure one self-managed GitLab server against three critical vulnerabilities: CVE-2026-85706 (unauthenticated file read, commits API), CVE-2026-97229 (code execution through a crafted CI/CD regular expression) and CVE-2026-110264 (unauthenticated code execution through the Onigmo regex engine). The first two are on CISA's Known Exploited Vulnerabilities list.
Facts to work from:
- One upgrade covers all three: 19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10 or 18.11.13, or newer on the same branch. The 12 October versions (19.4.2, 19.3.5, 19.2.8) do not fix CVE-2026-110264. 18.10 and older have no fix.
- The regex fixes live in Ruby. Linux packages and official Docker images bundle the fixed Ruby. Self-built installs and custom images need Ruby 3.3.13, 3.4.12, 4.0.9 or later as well.
- Advisories: https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-5-1-released/ and https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-4-2-released/
Rules:
1. Find out how GitLab is installed (Linux package, Docker, Helm, source or custom image) and its exact version before suggesting any change. Do not assume.
2. Make me take a backup first, including /etc/gitlab/gitlab-secrets.json and /etc/gitlab/gitlab.rb, which the normal backup does not include.
3. Keep me on my current branch unless it has no fix. If I am several versions behind, check GitLab's required upgrade stops and plan the path.
4. Pin the exact target version in every install command. Do not let the package manager pick.
5. Give me one command at a time and wait for my output. Explain each in one line. Warn me before anything that causes downtime, changes data or restarts GitLab.
6. If a command fails, diagnose it from my output and give the smallest safe fix.
7. Never ask me to download or run exploit or proof-of-concept code.
8. We are done only when the running version is a fixed version, background migrations have finished, gitlab:check passes, and, for self-built installs, Ruby is a fixed version too.
My server: [for example: Ubuntu 22.04, GitLab EE Linux package, single node, internet-facing at gitlab.example.com]
Start by asking me for the first command to run.
Works the same in Claude.ai, the Claude desktop app, or Claude Code on the server itself. Replace the yellow part before you send it.
Eight steps, per GitLab server
Copying a command or prompt marks the step as taken. Mark complete confirms it once you have checked the result. Progress is saved in this browser only.
Look on servers, in cloud accounts and in containers. Include test and old project servers. For each one, note who administers it and whether the internet can reach it.
dpkg -l 2>/dev/null | grep -E '^ii +gitlab-(ce|ee)'; rpm -qa 2>/dev/null | grep -E '^gitlab-(ce|ee)'
docker ps --format '{{.Names}}\t{{.Image}}' 2>/dev/null | grep -i gitlab
ls -d /opt/gitlab /home/git/gitlab 2>/dev/nullcurl -s -o /dev/null -w '%{http_code}\n' https://gitlab.yourcompany.com/users/sign_in # 200 = reachableHelp me find every self-managed GitLab server my organization runs, so I can patch CVE-2026-85706, CVE-2026-97229 and CVE-2026-110264. Ask me about our domains and DNS records, cloud accounts, Kubernetes clusters, Docker hosts, office servers, and any vendor or contractor who set up GitLab for us. For each server, capture: address, internet-facing yes or no, install method, who administers it. Give me the list as a table, internet-facing first.
What I know so far: [domains, cloud accounts, providers]The install method decides the upgrade command. The version decides whether you can upgrade in one jump or need required upgrade stops. Also record the Ruby version.
head -1 /opt/gitlab/version-manifest.txt sudo gitlab-rake gitlab:env:info | grep -E 'GitLab information|Version|Ruby' /opt/gitlab/embedded/bin/ruby -v
docker exec gitlab head -1 /opt/gitlab/version-manifest.txt docker inspect -f '{{.Config.Image}}' gitlab docker exec gitlab /opt/gitlab/embedded/bin/ruby -v
Also in the web interface: Admin area → Overview → Dashboard → Components. Self-built installs: cat /home/git/gitlab/VERSION and ruby -v.
I need to know exactly which GitLab version my server runs, how it was installed (Linux package, official Docker image, Helm chart, self-built from source, or a custom image), and which Ruby it uses. Give me read-only commands one at a time and tell me what each output means. Then tell me which fixed version on my branch I need for CVE-2026-85706, CVE-2026-97229 and CVE-2026-110264, and whether I need required upgrade stops to get there. Here is my first output: [paste output]Pin the exact version so the package manager cannot pick something else. A single-node server is down while database migrations run. Tell your developers before you start.
sudo gitlab-backup create sudo mkdir -p /root/gitlab-config-backup sudo cp /etc/gitlab/gitlab-secrets.json /etc/gitlab/gitlab.rb /root/gitlab-config-backup/ ls -lh /var/opt/gitlab/backups | tail -3
Ubuntu, Debian apt · Linux package
sudo apt-get update apt-cache madison gitlab-ee | head -5 # confirm the target is listed sudo apt-get install gitlab-ee=19.3.6-ee.0 # your branch's fixed version sudo gitlab-ctl status
RHEL, Rocky, Alma, Amazon Linux dnf or yum · Linux package
sudo dnf --showduplicates list gitlab-ee | tail -5 sudo dnf install gitlab-ee-19.3.6-ee.0.el9 # match your OS release sudo gitlab-ctl status
Docker official gitlab/gitlab-ee image
# In docker-compose.yml, pin the tag: image: gitlab/gitlab-ee:19.3.6-ee.0 (never :latest) docker compose pull docker compose up -d docker logs -f gitlab 2>&1 | grep -m1 'gitlab Reconfigured'
Kubernetes Helm chart
helm repo update helm search repo gitlab/gitlab --versions | head -10 # pick the chart that ships your fixed version helm upgrade gitlab gitlab/gitlab --version CHART_VERSION --reuse-values -n gitlab
Self-built or custom image GitLab and Ruby
# 1. Upgrade GitLab to the fixed version, following GitLab's source upgrade guide. # 2. Upgrade Ruby to 3.3.13, 3.4.12, 4.0.9 or later, then rebuild the image. ruby -v # 3. Restart all GitLab services so the new Ruby is loaded.
I am upgrading a self-managed GitLab server from [current version] to [target fixed version] to fix CVE-2026-85706, CVE-2026-97229 and CVE-2026-110264. Install method: [Linux package / Docker / Helm / source] on [OS]. I ran: [paste the command] and got: [paste the full output or error] Diagnose the cause from the output and give me the smallest safe fix, one command at a time. Check whether I need a required upgrade stop. Warn me before anything that changes data. Do not suggest skipping database migrations.
Check the running version, not the one you meant to install. Alpine installed 19.3.4 when it meant 19.3.5. Then confirm migrations finished and the health check passes.
head -1 /opt/gitlab/version-manifest.txt # must be a fixed version sudo gitlab-ctl status # every service "run" sudo gitlab-rake gitlab:check SANITIZE=true sudo gitlab-rake db:migrate:status | grep -c ' down ' # expect 0
Background migrations: Admin area → Monitoring → Background migrations. Wait until none are running before the next upgrade. Self-built installs: also confirm ruby -v shows a fixed Ruby.
Help me confirm that my self-managed GitLab server is no longer vulnerable to CVE-2026-85706, CVE-2026-97229 and CVE-2026-110264. Fixed versions are 19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10 and 18.11.13 or newer on the same branch. Give me read-only commands to confirm the running version, that every service is up, that database and background migrations have finished, and, if GitLab is self-built or a custom image, that Ruby is 3.3.13, 3.4.12, 4.0.9 or later. Here is my output so far: [paste output]GitLab lists no workaround for CVE-2026-85706 or CVE-2026-110264. Restricting access is the only stopgap. Skip this step if step 4 passed.
| Measure | How | Covers |
|---|---|---|
| Remove public exposure | Put GitLab behind a VPN, or allow only trusted IP ranges at the firewall or load balancer. | All three, as a stopgap. CERT and vendor advice for servers that cannot be patched. |
| Turn off open sign-up | Admin area → Settings → General → Sign-up restrictions → clear "Sign-up enabled". | Reduces the CVE-2026-97229 route, which needs an account that can push to a public project. |
| Restrict public projects | Admin area → Settings → General → Visibility and access controls → restrict Public visibility. | Reduces the CVE-2026-97229 route. |
| Turn on GitLab's detections | GitLab published threat detections, including "Onigmo native worker crash", "Org mode render error burst" and "ci regexp guard rejection". Load them into your log monitoring. | Detection only. Not a fix. |
I cannot upgrade my self-managed GitLab server today to fix CVE-2026-85706, CVE-2026-97229 and CVE-2026-110264. Help me reduce exposure safely until I can: restrict access to a VPN or trusted IP ranges at [firewall / cloud security group / load balancer], turn off open sign-up, and restrict public project visibility. Before each change, list what it will break (remote developers, webhooks from outside services, runners on other networks, public projects) and help me allowlist what must keep working. Remind me these are stopgaps and that upgrading is still required. My setup: [hosting, who uses GitLab from where, integrations]
No fix exists below 18.11. CVE-2026-110264 reaches back to version 7.0, so very old servers are open to it. Getting current usually takes several upgrades in a row, with required stops. Take it off the internet first (step 5), then climb.
head -1 /opt/gitlab/version-manifest.txt sudo gitlab-backup create && sudo mkdir -p /root/gitlab-config-backup && sudo cp /etc/gitlab/gitlab-secrets.json /etc/gitlab/gitlab.rb /root/gitlab-config-backup/ # Wait for background migrations to finish (Admin area → Monitoring) before the next hop.
Use GitLab's Upgrade Path tool to list the required stops from your version to 18.11.13 or newer. Take a server snapshot before the first hop. Test on a copy if the server is business-critical.
My self-managed GitLab server runs [version], which has no fix for CVE-2026-110264 and possibly CVE-2026-85706. Help me plan the upgrade path to a fixed version (18.11.13, 19.0.10, 19.1.9, 19.2.9, 19.3.6, 19.4.3 or 19.5.1, or newer), including GitLab's required upgrade stops, OS or PostgreSQL version requirements along the way, and a backup and snapshot before each hop. Give me the plan as a numbered list first, then walk me through it one command at a time. Install method and OS: [details]
Two of these flaws were exploited before many servers were patched. Upgrading closes the door; it does not remove anyone who got in. Use read-only checks. If anything looks wrong, stop and call ONCyber before you clean up, so evidence is kept for your insurer.
# Worker crashes, the main sign of the regex exploits sudo grep -hiE 'segfault|SIGSEGV|onigmo|stack level too deep' /var/log/gitlab/puma/*.log /var/log/gitlab/sidekiq/current 2>/dev/null | tail -30 # Path traversal attempts against the commits API (CVE-2026-85706) sudo zgrep -hE 'repository/commits.*(\.\./|%2e%2e|%2E%2E)' /var/log/gitlab/nginx/gitlab_access.log* | tail -30 # New administrators and new access tokens since 10 September sudo gitlab-rails runner "User.admins.where('created_at > ?', Date.new(2026,9,10)).each{|u| puts [u.username,u.email,u.created_at].join(' | ')}" sudo gitlab-rails runner "PersonalAccessToken.where('created_at > ?', Date.new(2026,9,10)).find_each{|t| puts [t.user.username,t.name,t.created_at,t.scopes.join(',')].join(' | ')}" # Unexpected processes started by GitLab ps -ef --forest | grep -A3 -E 'puma|sidekiq|gitlab-workhorse' | grep -vE 'puma|sidekiq|workhorse|grep'
If you find signs of code execution, assume everything the server held is exposed: user passwords, two-factor secrets, CI/CD variables, deploy keys, runner tokens and cloud credentials stored in GitLab. Alpine rebuilt from scratch and reset passwords.
Help me check my self-managed GitLab server for signs that CVE-2026-85706, CVE-2026-97229 or CVE-2026-110264 was exploited since 10 September 2026. Use read-only commands only. Do not delete, change or rotate anything yet. Look for: Puma or Sidekiq worker crashes, path traversal requests to the repository commits API, unusual CI/CD pipelines or .gitlab-ci.yml changes in public projects, new administrators, new personal, project or deploy tokens, new SSH keys, unexpected processes started by GitLab, and outbound connections from the server. If anything looks suspicious, tell me to stop and contact my security provider before cleaning up, so evidence is preserved. My setup: [install method, log locations if non-standard]Tell developers about the downtime before you start, and when GitLab is back. Remove any stopgaps from step 5 only after step 4 passes. If step 7 found anything, plan secret rotation with ONCyber, in the right order, so you do not lock yourselves out. Then review the ONCyber scan report.
Write a short, calm message to our developers: our self-hosted GitLab at [address] will be down on [date and time, time zone] for up to [duration] for a critical security upgrade. Ask them to push their work before the window, not to run pipelines during it, and to report anything odd afterwards to [contact]. Plain language, under 120 words.
Confirmed by GitLab and CISA
- All three flaws are CVSS 10.0 and affect self-managed GitLab CE and EE only.
- GitLab.com and GitLab Dedicated were patched before disclosure.
- CVE-2026-85706 is on CISA's exploited list since 11 September.
- CVE-2026-97229 is on CISA's exploited list since 29 October.
- One upgrade to the 21 October release on your branch covers all three.
Still open as of 1 Nov, 19:00 ET
- Attacks on CVE-2026-110264: none known. Not on CISA's list. Expect that to change.
- Exact conditions for CVE-2026-110264 have not been disclosed.
- Whether other Ruby applications are exposed through the same Onigmo bugs is not established. Updating Ruby is cheap prudence.
- Exploit code: Rapid7 published one for CVE-2026-97229. Others online are unverified, and some are lures. Do not run them.
- GitLab patch releases: 19.3.2 (CVE-2026-85706), 19.4.2 (CVE-2026-97229), 19.5.1 (CVE-2026-110264)
- BleepingComputer: CISA says max severity GitLab flaw now exploited · Alpine Linux rebuilds GitLab after attempted RCE attack
- GovInfoSecurity on CVE-2026-85706 attacks · Help Net Security on CVE-2026-97229
- Beazley Security on CVE-2026-110264 · Astra on CVE-2026-110264 · Bundled Ruby analysis