CVE-2024-0402

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

State
Published
Severity
9.9 Critical
Published
Jan 26, 2024
Updated
Jun 3, 2026
Reserved
Jan 10, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.9 CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HGitLab

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Affected Products

ProductVersions
GitLabGitLab
  • 16.0 to before 16.5.8Affected
  • 16.6 to before 16.6.6Affected
  • 16.7 to before 16.7.4Affected
  • 16.8 to before 16.8.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.