GitLab Arbitrary File Read Vulnerability (CVS 2023-2825)

GitLab Arbitrary File Read Vulnerability (CVS 2023-2825)

May 29, 2023 | NSFOCUS

Overview

Recently, NSFOCUS CERT found that GitLab officially issued a security notice, fixing an arbitrary file reading vulnerability (CVE-2023-2825) in GitLab Community Edition (CE) and Enterprise Edition (EE). When there are attachments in public projects nested in at least five groups, unauthenticated remote attackers use the upload function to traverse the path, resulting in reading arbitrary files on the server. The CVSS score is 10.0, affected users should take protective measures as soon as possible.

Vulnerability status for this update:

Vulnerability DetailsVulnerability PoCVulnerability EXPUtilization in the wilderness
UnpublishedUnpublishedUnpublishedNot currently present

Reference link: https://about.gitlab.com/releases/2023/05/23/critical-security-release-gitlab-16-0-1-released/

Scope of Impact

Affected version

  • GitLab CE/EE=16.0.0

Unaffected version

  • GitLab CE/EE>=16.0.1

Detection

Relevant users can use version detection to determine whether the current application is at risk.

Use the following command to view the current version of GitLab being used:

Cat/opt/gitlab/embedded/service/gitlab rails/VERSION

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

Mitigation

At present, GitLab has officially released a security version to fix this vulnerability. It is recommended that affected users upgrade their protection in a timely manner: https://about.gitlab.com/update/

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.