Path Traversal in GitLab
CVE-2024-0402
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.9 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.038, 90.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- GitLab — versions 16.8.0, 16.8, 16.7
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- doyensec/malicious-devfile-registry (15 stars, last pushed 2025-03-18): Exploit for CVE-2024-0402 in Gitlab
- ch4nui/CVE-2024-0402-RCE
Also mentioned in 5 other repositories (0xfschott/CVE-search, ARPSyndicate/cve-scores, nomi-sec/PoC-in-GitHub, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- about.gitlab.com/releases/2024/01/25/critical-security-release-gitlab-16-8-1-re… (Vendor Advisory)
- GitLab Issue #437819 (issue-tracking, permissions-required, Broken Link)
This CVE has public exploit evidence. See the latest CVEs with public exploits.