Skip to content
OpenAdvisories
Critical · 9.9 Public exploit CVE-2024-0402 EUVD-2024-16198GHSA-3hm6-rvrr-hc6r

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

Published Jan 26, 2024 · Updated Jun 3, 2026 · Assigned by GitLab

Description

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 products

VendorProductAffectedFixed
GitLab GitLab 16.0 – < 16.5.8, 16.6 – < 16.6.6, 16.7 – < 16.7.4, 16.8 – < 16.8.1 16.5.8

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS gitlab No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 1

References