CVE-2024-0402: Arbitrary file write while creating workspace

Published Jan 25, 2024
·
Updated

An issue has been discovered in GitLab CE/EE affecting all versions from 16.0 prior to 16.5.8, 16.6 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. This is a critical severity issue (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, 9.9). It is now mitigated in the latest release and is assigned CVE-2024-0402.

Other sources

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.

NVD

Affected Software

9 affected componentsFixes available
GitLab GitLab>=16.0.0<16.5.8
GitLab GitLab>=16.0.0<16.5.8
GitLab GitLab>=16.6.0<16.6.6
GitLab GitLab>=16.6.0<16.6.6
GitLab GitLab>=16.7.0<16.7.4
GitLab GitLab>=16.7.0<16.7.4
GitLab GitLab=16.8.0
GitLab GitLab=16.8.0
GitLab GitLab>=16.0<16.5.8, >=16.6<16.6.6, >=16.7<16.7.4, >=16.8<16.8.1
16.5.816.6.616.7.416.8.1

Remediation

Information

Upgrade to versions 16.8.1, 16.7.4, 16.6.6, 16.5.8 or above.

Event History

Jan 26, 2024
CVE Published
via MITRE·01:02 AM
Data Sourced
via MITRE·01:02 AM
RemedyDescriptionSeverityWeakness
Apr 22, 2026
Data Sourced
via GitLab·08:52 AM
DescriptionSeverityAffected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-0402?

CVE-2024-0402 is considered a critical vulnerability due to its ability to allow authenticated users to write files to arbitrary locations on the GitLab server.

2

How do I fix CVE-2024-0402?

To fix CVE-2024-0402, upgrade to GitLab versions 16.6.6, 16.7.4, or 16.8.1 or later.

3

Who is affected by CVE-2024-0402?

CVE-2024-0402 affects all versions of GitLab CE/EE from 16.0 prior to 16.6.6, 16.7 prior to 16.7.4, and 16.8 prior to 16.8.1.

4

What type of access is required to exploit CVE-2024-0402?

Exploitation of CVE-2024-0402 requires authenticated user access to the GitLab server.

5

What are the potential risks of CVE-2024-0402?

The potential risks of CVE-2024-0402 include unauthorized file creation and modification on the GitLab server, which could lead to data breaches or service disruption.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203