Improper access control in Gitlab Community Edition and GitLab Enterprise Edition - CVE-2023-5226

 

Improper access control in Gitlab Community Edition and GitLab Enterprise Edition - CVE-2023-5226

Published: December 1, 2023


Vulnerability identifier: #VU83610
CSH Severity: Medium
CVSS v4: 5.7 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-5226
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain unauthorized access to otherwise restricted functionality.

The vulnerability exists due to improper access restrictions within the main branch of a repository with a specially designed name. A remote user can use a specially crafted branch name to bypass prohibited branch checks and manipulate repository content in the UI.


Affected software

Gitlab Community Edition
GitLab Enterprise Edition

How to mitigate CVE-2023-5226

Install updates from vendor's website.

Gitlab Community Edition - addressed in versions 16.4.3, 16.5.3, 16.6.1
GitLab Enterprise Edition - addressed in versions 16.4.3, 16.5.3, 16.6.1

External References

Related Security Bulletins