PT-2024-1286 · Gitlab · Gitlab

Joernchen

·

Published

2024-01-25

·

Updated

2026-04-16

·

CVE-2024-0402

CVSS v3.1

9.9

Critical

VectorAV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions GitLab versions 16.0 through 16.5.7 GitLab versions 16.6 through 16.6.5 GitLab versions 16.7 through 16.7.3 GitLab versions 16.8 through 16.8.0
Description The issue is related to an incorrect restriction of the path name to a directory with limited access. This allows an authenticated user to write files to arbitrary locations on the GitLab server while creating a workspace. The estimated number of potentially affected devices worldwide is not specified. There is no information about real-world incidents where this issue was exploited.
Technical details about exploitation include the ability to write arbitrary files while creating a workspace. No specific API endpoints, vulnerable parameters, or function names are mentioned in the provided descriptions.
Recommendations For GitLab versions 16.0 through 16.5.7, update to version 16.5.8 or later. For GitLab versions 16.6 through 16.6.5, update to version 16.6.6 or later. For GitLab versions 16.7 through 16.7.3, update to version 16.7.4 or later. For GitLab versions 16.8 through 16.8.0, update to version 16.8.1 or later. As a temporary workaround, consider restricting access to the workspace creation feature until a patch is available.

Exploit

Fix

Path traversal

Weakness Enumeration

Related Identifiers

BDU:2024-00724
BIT-GITLAB-2024-0402
CVE-2024-0402

Affected Products

Gitlab