CVE-2024-0402

published 26 Jan 2024 · updated 3 Jun 2026

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

9.9CriticalCVSS 9.9EPSS 4%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 4%. Fixed in GitLab 16.5.8, GitLab 16.6.6, GitLab 16.7.4 and 1 more.

An issue has been discovered in GitLab CE/EE affecting all versions from 16.0 prior to 16.6.6, 16.7 prior to 16.7.4, and 16.8 prior to 16.8.1 which allows an authenticated user to write files to arbitrary locations on the GitLab server while creating a workspace.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GitLabGitLab>=16.0 <16.5.8, >=16.6 <16.6.6, >=16.7 <16.7.4, >=16.8 <16.8.116.5.8, 16.6.6, 16.7.4, 16.8.1

Exploit evidence

1 public sources

Vendor advisories

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in GitLab, strongest first

10.0CriticalPublic exploit

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-0402 severity on Zeptric[![CVE-2024-0402](https://zeptric.io/badge/cve/CVE-2024-0402.svg)](https://zeptric.io/cve/CVE-2024-0402)