---
name: fix-gitlab-vuln
description: "Use when the user asks to fix, patch or upgrade a self-managed GitLab vulnerability (e.g. 'Please fix my GitLab vulnerability'), CVE-2026-110264 or the GitLab 19.5.1 critical patch release, across Omnibus, Docker, Helm chart and IaC deployments. Read-only inventory, approval gate, post-deploy checklist, focused PRs."
license: MIT
compatibility: Needs git, a shell and read access to the target repos. Build and verification steps need Docker and access to the image registry or package mirror the repos already use.
metadata:
  author: Cognition AI
  version: "1.0.0"
title: fix-gitlab-vuln
canonical_url: https://skilld.dev/gh/cognitionai/devin-vuln-fixes/fix-gitlab-vuln
last_updated: 2026-10-22T23:30:50.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install cognitionai/devin-vuln-fixes/fix-gitlab-vuln`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/fix-gitlab-vuln`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/cognitionai/devin-vuln-fixes/fix-gitlab-vuln) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/fix-gitlab-vuln`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/fix-gitlab-vuln --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/fix-gitlab-vuln --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Fix GitLab vulnerability (CVE-2026-110264, October 21, 2026 critical patch)

## Overview
Find and patch self-managed GitLab instances affected by CVE-2026-110264. It is a CVSS 10.0 unauthenticated RCE caused by an integer overflow in the Onigmo regex compiler, and it affects every CE/EE version from 7.0. Fixed releases: 19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10 and 18.11.13. The same patch release fixes 2 High, 6 Medium and 4 Low issues, and it includes the October 8 fix for CVE-2026-97229 (CVSS 10.0, fixed in 19.4.2/19.3.5/19.2.8). GitLab.com and GitLab Dedicated are already patched, so this playbook covers self-managed installs only. Inventory read-only first. Wait for approval before editing. Patch the IaC that deploys GitLab, verify the running version, and open focused PRs.

## What's Needed From User
- Repos or org holding GitLab infrastructure code (Helm values, Terraform, Ansible, Compose, Packer). Default: the repos the user names, or every repo the agent can reach.
- Whether the user runs GitLab.com, GitLab Dedicated, or a self-managed instance, and the instance URL if self-managed.
- Approval of which deployments to patch, plus a maintenance window for single-node instances.

## Procedure
1. Search all accessible repos read-only with the git host's code search before cloning (if there is none, which is common on GitHub Enterprise Server and self-managed GitLab, shallow-clone and `rg -n --hidden --glob '!.git'`). Look for:
   - `gitlab/gitlab-ee` and `gitlab/gitlab-ce` images, and CNG images (`registry.gitlab.com/gitlab-org/build/cng/*`).
   - The `gitlab` Helm chart (`charts.gitlab.io`) and the GitLab Operator.
   - `gitlab-ee`/`gitlab-ce` Omnibus packages in Ansible/Chef/Puppet/cloud-init/Packer.
   - Terraform modules and AMIs that deploy GitLab.
   - Source installs (`gitlab-foss`/`gitlab` checkouts).
2. Produce one inventory table: repo, file:line, deployment type (Omnibus, Docker, Helm, Operator, source), edition, current version or chart version, exact/floating pin, node topology (single vs multi-node), and confidence. List repos you could not search separately. If the user is on GitLab.com or Dedicated, say no action is needed and stop.
3. Mark each entry fixed, vulnerable, or unknown. If the instance URL is reachable, compare with `/help` or the `/api/v4/version` result (token required). Otherwise rely on the pinned version.
4. Stop. Show the table, flag single-node instances that will have downtime, and ask which deployments to patch. Change nothing during discovery.
5. Work through the approved deployments one at a time. If your agent supports subagents, run one per repo, at most five at once. Repeat the inventory for a repo before you edit it.
6. For each repo, pick the fixed patch in the same minor and confirm it exists before editing. Check against the registry or package mirror the repo's CI already uses (Artifactory, Nexus, Harbor or a cloud registry) when public hosts are blocked; if neither is reachable, mark the target unverified in the PR and let the CI build prove it.
   - Docker: `gitlab/gitlab-ee:<ver>-ee.0` or `gitlab/gitlab-ce:<ver>-ce.0`. Resolve and pin the new digest if digest-pinned.
   - Helm/Operator: look up the chart version on https://docs.gitlab.com/charts/installation/version_mappings/ (for example, GitLab 19.5.1 is chart 10.5.1 and GitLab 18.11.13 is chart 9.11.14). If that page is unreachable, run `helm search repo gitlab/gitlab -l` against the chart repo or mirror the cluster uses. Bump the chart version, not just `global.gitlabVersion`.
   - Omnibus: pin `gitlab-ee=<ver>-ee.0` (or the CE equivalent) in the config-management code.
   - Source: check out the fixed tag and follow the source upgrade guide for the target version.
7. If the current version is more than one minor behind or on an unsupported branch, report the required upgrade-path stops (https://gitlab-com.gitlab.io/support/toolbox/upgrade-path/) instead of jumping. Do multi-stop upgrades only with user approval.
8. Add rollout notes to each PR:
   - A backup before upgrading.
   - Downtime for single-node instances, since migrations must finish before GitLab starts.
   - Zero-downtime procedure for multi-node instances.
   - Post-deploy migrations.
9. Validate what you can without production access: `helm template`/`helm lint`, `terraform validate`/`plan`, `ansible-lint`, and Compose config checks. List the post-deploy checks for the user to run:
   - `gitlab-rake gitlab:env:info` showing the fixed version.
   - `gitlab-rake gitlab:check`.
   - `gitlab-ctl status`, or pod readiness on Helm.
   - Background migrations completed.
   - Web, Git over SSH and HTTPS, and CI runners working.
10. Open one focused PR per repo listing each deployment before → after, chart/image/package versions, digests, upgrade-path notes, downtime expectations, validation results, and the post-deploy checklist.
11. Roll up the per-repo results into one table: repo, PR, deployment type, before → after, downtime, validation, blocked items, follow-ups. Remind the user that the instance stays vulnerable until the change is deployed.

## Specifications
- Discovery is read-only and ends at an explicit approval gate.
- Every target image, chart or package is confirmed to exist before editing.
- Each PR states the downtime impact and includes the post-deploy validation checklist.
- Done means every approved deployment has a PR, or has been reported as blocked with a concrete next step.

## Advice and Pointers
- Internet-reachable instances are the top priority, because the bug is exploitable without authentication.
- GitLab published two threat detections for self-managed instances: "Onigmo native worker crash" and "Org mode render error burst". Point security teams to them so they can hunt for prior exploitation.
- GitLab Runner and the GitLab Agent are versioned separately and are not listed in this advisory. Do not upgrade them as part of this fix.
- Geo secondaries and every node of a multi-node install must run the same version.

## Forbidden Actions
- Do not edit before the user approves a deployment.
- Do not guess image tags, chart versions, or package versions.
- Do not skip required upgrade-path stops or tell the user to skip migrations.
- Do not change the edition (CE↔EE) or deployment type.
- Do not run commands against a production GitLab instance.
