Advisory: Gitlab EE multiple high-risk vulnerabilities

Advisory: Gitlab EE multiple high-risk vulnerabilities

dezembro 24, 2019 | Adeline Zhang

Vulnerability Description

On December 10, 2019 local time, GitLab officially released an important version update notice, announcing three high-risk vulnerabilities in GitLab EE (Enterprise Edition). GitLab is an open source and web-based Git-repository management project.

CVE-2019-19628: Because the registry of the maven package does not have accurate parameter settings, an attacker can achieve privilege escalation and remote code execution under certain conditions.

CVE-2019-19629: When importing public projects into private groups, the Group Search API integrated on Elasticsearch may cause leakage of private codes.

CVE-2019-19604: When users use the Git submodule update function, an attacker can use this vulnerability to execute arbitrary commands defined in the .gitmodules file.

Reference:

https://gitlab.com/gitlab-com/gl-security/disclosures/blob/master/003_git_submodule/advisory.md

https://about.gitlab.com/blog/2019/12/10/critical-security-release-gitlab-12-5-4-released/

 

Scope of Impact

CVE-2019-19628:

Affected Versions

  • GitLab EE 11.3 or later.

Unaffected Versions

  • GitLab EE = 12.3.9
  • GitLab EE = 12.4.6
  • GitLab EE = 12.5.4

 

CVE-2019-19629:

Affected Versions

  • GitLab EE 10.5 or later.

Unaffected Versions

  • GitLab EE = 12.3.9
  • GitLab EE = 12.4.6
  • GitLab EE = 12.5.4

 

CVE-2019-19604:

Affected Versions

  • Git 2.20.0-2.20.1
  • Git 2.21.0
  • Git 2.22.0-2.22.1
  • Git 2.23.0
  • Git 2.24.0
  • All versions of GitLab Omnibus

Unaffected Versions

  • Git 2.20.2
  • Git 2.21.1
  • Git 2.22.2
  • Git 2.23.1
  • Git 2.24.1
  • GitLab EE = 12.3.9
  • GitLab EE = 12.4.6
  • GitLab EE = 12.5.4

 

Vulnerability Detection

Version Inspection

Users who are using GitLab software are recommended to view your current system version and find whether your version is affected or not.

Gitlab:

Use the following command to view the current version of Gitlab:

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

 

Git:

Use the following command to view the current Gti version:

git –version

Mitigation

Official Upgrade

At present, the above vulnerabilities have been fixed in the latest version. Users can upgrade their system to the latest version.

Gitlab download and installation:

https://about.gitlab.com/update/

Git download and installationk:

https://git-scm.com/download/

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 Information Technology Co. Ltd., the company has operations in the Americas, Europe, the Middle East and Asia Pacific.