Skip to content
Heist/ feed
Back to feed
Critical

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-85706
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 22:51 UTC · Revision 1

Source evidence

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab

core-osv · Original source

Published 12 Sept 2026, 02:46 UTC

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.

osv:CVE-2026-85706
Complete source record
{
  "id": "384a1e91082994194362834e220f0f7df4cdb0e2f9407d340bd1c6be89a71880",
  "url": "https://osv.dev/vulnerability/CVE-2026-85706",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab",
    "summary": "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.",
    "evidence": "osv:CVE-2026-85706",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-85706",
      "aliases": [
        "BIT-gitlab-2026-85706",
        "CVE-2026-85706"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/gitlab-org/gitlab",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ceaa3c8b3a5ddb810b246bff3029e68cc57caf94"
                },
                {
                  "fixed": "4b537b4c2227a44f3f9935e783212b1cf927e961"
                },
                {
                  "introduced": "f07e3c5b3c8128be5db112e5b2b618fe31ea1b35"
                },
                {
                  "fixed": "28286047c9f2e2a9fd02c6cf0979954241ecc085"
                },
                {
                  "introduced": "67581074a0aab1f53cdafe7eead5f5d07f3afec8"
                },
                {
                  "fixed": "ec0fce03a55d83fb520d92d1428491e950dd51f4"
                },
                {
                  "introduced": "68485a1eb627c9a992f266263157327649822db3"
                },
                {
                  "fixed": "684d9581bfefb68c8593331266b69702589d80a3"
                },
                {
                  "introduced": "8f83039bebbbb61d3b7b8b7e2342d1deec1e14c6"
                },
                {
                  "fixed": "601afd607baae60e14e83e16fb9dea03cf8c7032"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
                    "range": [
                      {
                        "introduced": "18.7.0"
                      },
                      {
                        "fixed": "18.11.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "18.7.0"
                      },
                      {
                        "fixed": "18.11.12"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
                    "range": [
                      {
                        "introduced": "19.0.0"
                      },
                      {
                        "fixed": "19.0.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "19.0.0"
                      },
                      {
                        "fixed": "19.0.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
                    "range": [
                      {
                        "introduced": "19.1.0"
                      },
                      {
                        "fixed": "19.1.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "19.1.0"
                      },
                      {
                        "fixed": "19.1.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
                    "range": [
                      {
                        "introduced": "19.2.0"
                      },
                      {
                        "fixed": "19.2.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "19.2.0"
                      },
                      {
                        "fixed": "19.2.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
                    "range": [
                      {
                        "introduced": "19.3.0"
                      },
                      {
                        "fixed": "19.3.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "19.3.0"
                      },
                      {
                        "fixed": "19.3.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v19.3.0-ee",
            "v19.1.0-ee",
            "v19.2.0-ee",
            "v19.0.0-ee"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85706.json"
          }
        }
      ],
      "modified": "2026-10-30T10:30:26.234292211Z",
      "provider": "osv",
      "references": [
        "https://gitlab.com/gitlab-org/gitlab/-/work_items/627748",
        "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-85706",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85706.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-85706",
        "https://hackerone.com/reports/3909881"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "GitLab",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "18.7"
                  },
                  {
                    "fixed": "18.11.12"
                  },
                  {
                    "introduced": "19.0"
                  },
                  {
                    "fixed": "19.0.9"
                  },
                  {
                    "introduced": "19.1"
                  },
                  {
                    "fixed": "19.1.8"
                  },
                  {
                    "introduced": "19.2"
                  },
                  {
                    "fixed": "19.2.6"
                  },
                  {
                    "introduced": "19.3"
                  },
                  {
                    "fixed": "19.3.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "18.7"
                  },
                  {
                    "fixed": "18.11.12"
                  },
                  {
                    "introduced": "19.0"
                  },
                  {
                    "fixed": "19.0.9"
                  },
                  {
                    "introduced": "19.1"
                  },
                  {
                    "fixed": "19.1.8"
                  },
                  {
                    "introduced": "19.2"
                  },
                  {
                    "fixed": "19.2.6"
                  },
                  {
                    "introduced": "19.3"
                  },
                  {
                    "fixed": "19.3.2"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85706.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-85706",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507743,
  "published_at": "2026-09-12T02:46:31.624+00:00"
}