CVE-2026-85706 in gitlab

LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.

What the vulnerability is

GitLab has remediated an issue in GitLab CE/EE affecting all versions from 18.7 before 18.11.12, 19.0 before 19.0.9, 19.1 before 19.1.8, 19.2 before 19.2.6, and 19.3 before 19.3.2 that, under certain conditions, an unauthenticated user could have read arbitrary files from the GitLab server due to improper path confinement and missing authentication enforcement in the repository commits API.

Affected software: gitlab

Scores

What LogPulse has for it

How to mitigate it

Upgrade GitLab CE/EE to a fixed patch release (CVE-2026-85706)

Patch or upgrade. GitLab CE/EE from 18.7 lets an unauthenticated user read arbitrary files from the server through the repository commits API (KEV, CVSS 10). Upgrading to 18.11.12, 19.0.9, 19.1.8, 19.2.6, 19.3.2 or later removes the flaw.

Applies to: GitLab CE/EE 18.7 before 18.11.12, 19.0 before 19.0.9, 19.1 before 19.1.8, 19.2 before 19.2.6 and 19.3 before 19.3.2. GitLab.com is patched by GitLab.

  1. Find the GitLab version: Admin area, Dashboard, Components, or run 'sudo gitlab-rake gitlab:env:info' on the server.
  2. Take a backup with 'sudo gitlab-backup create' and copy /etc/gitlab/gitlab-secrets.json and gitlab.rb off the server.
  3. Upgrade the Omnibus package to the fixed patch release of your minor version (18.11.12, 19.0.9, 19.1.8, 19.2.6 or 19.3.2, or later): 'sudo apt-get install gitlab-ee=<version>-ee.0' or the yum/dnf equivalent; for Docker pull the matching gitlab/gitlab-ee image.
  4. Run 'sudo gitlab-ctl reconfigure' if the package did not, and check 'sudo gitlab-ctl status' and the version in the Admin area.
  5. If you cannot upgrade at once, restrict access to the GitLab web interface to VPN or internal networks until it is upgraded.
  6. After upgrading, rotate secrets that live in files on the server (gitlab-secrets.json values, runner registration tokens, deploy keys, CI variables stored on disk) if the server was reachable from the internet, and review the web logs for requests to the repository commits API with traversal sequences.

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse