CWE
94
Advisory Published
Updated

CVE-2024-3958: Improper Control of Generation of Code ('Code Injection') in GitLab

First published: Thu Aug 08 2024(Updated: )

An issue has been discovered in GitLab CE/EE affecting all versions before 17.0.6, 17.1 prior to 17.1.4, and 17.2 prior to 17.2.2. An issue was found that allows someone to abuse a discrepancy between the Web application display and the git command line interface to social engineer victims into cloning non-trusted code.

Credit: cve@gitlab.com

Affected SoftwareAffected VersionHow to fix
GitLab<17.0.6
GitLab<17.0.6
GitLab>=17.1.0<17.1.4
GitLab>=17.1.0<17.1.4

Remedy

Upgrade to versions 17.2.2, 17.1.4, 17.0.6 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-3958?

    CVE-2024-3958 is considered a high severity vulnerability affecting specific versions of GitLab.

  • How do I fix CVE-2024-3958?

    The issue can be resolved by upgrading to GitLab version 17.0.6 or later, or 17.1.4 and later.

  • What versions of GitLab are affected by CVE-2024-3958?

    CVE-2024-3958 impacts all GitLab versions before 17.0.6, as well as 17.1 versions prior to 17.1.4 and 17.2 versions before 17.2.2.

  • What type of vulnerability is CVE-2024-3958?

    CVE-2024-3958 is a social engineering vulnerability due to discrepancies between the web application display and git command line interface.

  • Is there a workaround for CVE-2024-3958 if I cannot update?

    There is no officially recommended workaround for CVE-2024-3958 other than applying the necessary updates.

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