# CVE-2024-0402: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab

- Severity: Critical 9.9 (CVSS:3.1, scored by GitLab) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.78%, higher than 90% of CVEs (2026-12-01)
- Published: 2024-01-26T01:02:39.052Z
- Modified: 2026-09-08T08:47:43.356Z
- Also known as: BIT-GITLAB-2024-0402
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- GitLab GitLab: from 16.0 before 16.5.8; from 16.6 before 16.6.6; from 16.7 before 16.7.4; from 16.8 before 16.8.1; from 16.0.0 before 16.5.8; from 16.6.0 before 16.6.6; from 16.7.0 before 16.7.4; 16.8.0
- gitlab (Bitnami): from 16.0.0 before 16.5.8; from 16.6.0 before 16.6.6; from 16.7.0 before 16.7.4; from 16.8.0 before 16.8.1

## Every score

- GitLab: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://about.gitlab.com/releases/2024/01/25/critical-security-release-gitlab-16-8-1-released/> (advisory, vendor-advisory)
- <https://gitlab.com/gitlab-org/gitlab/-/issues/437819> (broken-link, issue-tracking, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-0402> (web)

## Sources

- CVE List: [CVE-2024-0402](https://www.cve.org/CVERecord?id=CVE-2024-0402), CVE Terms of Use, modified 2026-06-03
- NVD: [CVE-2024-0402](https://nvd.nist.gov/vuln/detail/CVE-2024-0402), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GITLAB-2024-0402](https://osv.dev/vulnerability/BIT-GITLAB-2024-0402), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-0402 · Whole record: https://cve.day/CVE-2024-0402.json · Rebuilt by cve.day 2026-11-25T22:58:36.354Z
