CWE
22
EPSS
0.068%
Advisory Published
Updated

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

First published: Fri Jan 26 2024(Updated: )

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.

Credit: cve@gitlab.com

Affected SoftwareAffected VersionHow to fix
GitLab>=16.0.0<16.5.8
GitLab>=16.0.0<16.5.8
GitLab>=16.6.0<16.6.6
GitLab>=16.6.0<16.6.6
GitLab>=16.7.0<16.7.4
GitLab>=16.7.0<16.7.4
GitLab=16.8.0
GitLab=16.8.0

Remedy

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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • 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.

  • 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.

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

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203