GitLab Arbitrary File Write Vulnerability (CVE-2024-0402) Alert

GitLab Arbitrary File Write Vulnerability (CVE-2024-0402) Alert

janeiro 26, 2024 | NSFOCUS

Overview

Recently, NSFOCUS CERT detected that GitLab officially released a security announcement and fixed an arbitrary file write vulnerability (CVE-2024-0402) in GitLab Community Edition (CE) and Enterprise Edition (EE). Due to path traversal issues, authenticated attackers can copy files to any location on the GitLab server when creating workspaces.

The CVSS score is 9.9, affected users should take protective measures as soon as possible.

Reference link:

https://about.gitlab.com/releases/2024/01/25/critical-security-release-gitlab-16-8-1-released/

Scope of Impact

Affected version

  • 16.0 <= GitLab CE/EE < 16.5.8
  • 16.6 <= GitLab CE/EE < 16.6.6
  • 16.7 <= GitLab CE/EE < 16.7.4
  • 16.8 <= GitLab CE/EE < 16.8.1

Unaffected version

  • GitLab CE/EE >= 16.6.6
  • GitLab CE/EE >= 16.7.4
  • GitLab CE/EE >= 16.8.1

Note: The repair procedure of CVE-2024-0402 has been migrated back to version 16.5.8.

Detection

Relevant users can determine whether the current application has risks through version detection.

Use the following command to view the currently used GitLab version:

cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

If the current version is affected, there may be a security risk.

Mitigation

Official upgrade

At present, this vulnerability has been officially fixed in the latest version. Please upgrade the version for protection as soon as possible. The official download link: https://about.gitlab.com/update/

Other protective measures

If relevant users cannot perform the upgrade operation temporarily, they can use a whitelist to restrict access to the Web port.

Statement

This advisory is only used to describe a potential risk. NSFOCUS does not provide any commitment or promise on this advisory. NSFOCUS and the author will not bear any liability for any direct and/or indirect consequences and losses caused by transmitting and/or using this advisory. NSFOCUS reserves all the rights to modify and interpret this advisory. Please include this statement paragraph when reproducing or transferring this advisory. Do not modify this advisory, add/delete any information to/from it, or use this advisory for commercial purposes without permission from NSFOCUS.

About NSFOCUS

NSFOCUS, Inc., a global network and cyber security leader, protects enterprises and carriers from advanced cyber attacks. The company’s Intelligent Hybrid Security strategy utilizes both cloud and on-premises security platforms, built on a foundation of real-time global threat intelligence, to provide multi-layered, unified and dynamic protection against advanced cyber attacks.

NSFOCUS works with Fortune Global 500 companies, including four of the world’s five largest financial institutions, organizations in insurance, retail, healthcare, critical infrastructure industries as well as government agencies. NSFOCUS has technology and channel partners in more than 60 countries, is a member of both the Microsoft Active Protections Program (MAPP), and the Cloud Security Alliance (CSA).

A wholly owned subsidiary of NSFOCUS Technologies Group Co., Ltd., the company has operations in the Americas, Europe, the Middle East and Asia Pacific.