SELF-HOSTED GITLAB
Security that moves the needle
Security Advisory
ONC-ADV-2026-ALL-002 · Version 1 · P1+ for self-hosted GitLab only
Status as of 1 November 2026, 19:00 ET
VERSION 1 Covers three GitLab flaws patched between 10 September and 21 October 2026. Reload before you act.
GitLab CE/EE self-managed · Three CVSS 10.0 flaws · CVE-2026-85706 · CVE-2026-97229 · CVE-2026-110264

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.

Are you affected?
GitLab.comNo action
GitLab DedicatedNo action
GitHub, Bitbucket, Azure DevOpsNot affected
Your own GitLab serverUpgrade now
WHAT IS GITLAB? A service where software teams store their code and run the automated jobs that build and deploy it. Some companies use GitLab's cloud service (GitLab.com). Others install GitLab on their own server. These flaws are only in the second kind, the self-hosted server, which often holds source code, passwords for cloud accounts and deployment keys.
Why this likely does not affect you

Answer three questions. If all three are "no", you are done.

1
Does your team sign in to GitLab at an address on your own domain?For example gitlab.yourcompany.com, or an IP address. Signing in at gitlab.com is GitLab's cloud service, which GitLab patched before announcing the flaws.
2
Is there a GitLab server in your office, data centre or cloud account?Including one a developer or contractor set up years ago for a project. Forgotten servers are the usual way in.
3
Does a vendor or hosting company run a GitLab server for you?Then the vendor must upgrade it. Ask them for the version and the date they upgraded, in writing.
Not sure? Send your IT lead one question: "Do we run our own GitLab server anywhere, and if so, what version is it on today?"

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.

CVSS
10.0 × 3
Maximum score on all three. No login needed.
Exploited
2 of 3
CVE-2026-85706 and CVE-2026-97229 are on the CISA KEV list.
Exposed servers
~2,800
Internet-facing GitLab CE servers tracked by Shadowserver.
GitLab.com
Patched
GitLab.com and Dedicated were fixed before disclosure.
In the news · 29 October to 1 November

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 lesson for self-hostersCheck that the fix is actually in your build. A version number alone was not enough for Alpine.
Rapid7, on CVE-2026-85706Remediate "on an emergency basis, outside of normal patch cycles", and look for signs of compromise "even after the update has been applied."
GitLabGitLab.com is already running the patched version. Dedicated customers need no action.

The three flaws, in plain words

CVEWhat an attacker can doPatchedStatus
CVE-2026-85706Read 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 2026KEV Exploited
CVE-2026-97229Run 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 2026KEV Exploited
CVE-2026-110264Run 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 2026No 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.

Who is at risk · By how GitLab is run
Self-built or custom imageHighestUses its own Ruby. Upgrading GitLab alone may not fix it. Alpine's case.
Linux package (Omnibus)At riskUpgrade to the fixed version. Ruby comes bundled.
Official Docker imageAt riskPull the fixed image tag and recreate the container.
GitLab.comPatchedFixed by GitLab before disclosure. No action.
GitLab DedicatedPatchedFixed by GitLab. No action.

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.

BranchUpgrade to at leastStatusNote
19.519.5.1Fix releasedNewest branch.
19.419.4.3Fix released19.4.2 is not enough.
19.319.3.6Fix released19.3.5 is not enough. 19.3.4 is open to all three.
19.219.2.9Fix released19.2.8 is not enough.
19.1, 19.019.1.9 · 19.0.10Fix releasedBackports.
18.1118.11.13BackportOldest branch with a fix.
18.10 and oldernoneNo fixUpgrade 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.

ONCyber clients
Our scans flag vulnerable GitLab servers. The upgrade is yours, or your provider's.
A GitLab upgrade includes database changes and, on a single server, downtime. Whoever administers your GitLab server runs it. If you are not sure whether you run one, ask us and we will check what our scans see.
Priority one · Self-hosters only
Start with any GitLab server the internet can reach.
If the sign-in page opens from a phone off your network, it is internet-facing and attackers can reach it. Upgrade those first. Servers reachable only through a VPN come after.
https://gitlab.yourcompany.com
https://git.yourcompany.com
https://code.yourcompany.com
1 · Internet-facing→2 · VPN only
From here down: only if you run your own GitLab server. Everyone else can stop reading.
Use AI to walk you through it

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.
Start prompt · paste first
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.

Remediation steps · self-hosted GitLab

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.

0 of 8 steps complete
1Find every GitLab server you run

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.

On a Linux server
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/null
From outside: is it on the internet?
curl -s -o /dev/null -w '%{http_code}\n' https://gitlab.yourcompany.com/users/sign_in   # 200 = reachable
Prompt for Claude
Help 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]
2Find the exact version and how it is installed

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.

Linux package (Omnibus)
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
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.

Prompt for Claude
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]
3Back up, then upgrade to the fixed version on your branch

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.

WATCH OUTThree ways an upgrade goes wrong.
The backup misses the secretsgitlab-backup does not include gitlab-secrets.json or gitlab.rb. Without them a restore cannot decrypt CI variables or two-factor settings. Copy both by hand.
Jumping too many versionsSeveral versions behind? GitLab requires upgrade stops. Check the Upgrade Path tool before you skip ahead.
A custom image keeps the old RubyAlpine's server stayed vulnerable after the GitLab upgrade. On self-built installs and custom images, update Ruby too.
Back up first (Linux package)
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
Terminal · change ee to ce for Community Edition
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
Terminal
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
Terminal
# 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
Terminal
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
Terminal
# 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.
Prompt for Claude · when a step fails
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.
4Verify the fix is really in place

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.

Linux package
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.

Prompt for Claude
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]
5Cannot upgrade today? Restrict who can reach it

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.

WATCH OUTThese stopgaps break things people rely on. Tell your developers first.
Taking GitLab off the internet stops remote work and outside integrationsDevelopers off the VPN, webhooks from SaaS tools and runners in other networks lose access. Allowlist the addresses that must keep working before you close the door.
Restricting public projects can break public docs and downloadsIt blocks the CVE-2026-97229 route, but anything you publish from a public project stops working for outsiders. Check what is public before you change it.
MeasureHowCovers
Remove public exposurePut 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-upAdmin 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 projectsAdmin area → Settings → General → Visibility and access controls → restrict Public visibility.Reduces the CVE-2026-97229 route.
Turn on GitLab's detectionsGitLab 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.
Prompt for Claude
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]
6On 18.10 or older? Plan the climb

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.

Before each hop
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.

Prompt for Claude
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]
7Check for signs of attack, back to 10 September

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.

Read-only checks (Linux package)
# 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.

Prompt for Claude
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]
8Tell your developers, and close out

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.

Prompt for Claude
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.
How we got here
10 Sep
CVE-2026-85706 fixed
Unauthenticated file read. On CISA's list the next day.
12 Oct
CVE-2026-97229 fixed
CI/CD regex code execution.
13 Oct
Exploit published
Rapid7 releases a proof of concept.
20–21 Oct
Alpine targeted
Upgraded GitLab, but custom Ruby stayed vulnerable.
21 Oct
CVE-2026-110264 fixed
Every version since 7.0 affected.
29 Oct
CISA KEV
CVE-2026-97229 confirmed exploited. Federal deadline 1 Nov.
Sources