Authorization bypass through user-controlled key in GitLab Enterprise Edition and Gitlab Community Edition - CVE-2021-22186

 

Authorization bypass through user-controlled key in GitLab Enterprise Edition and Gitlab Community Edition - CVE-2021-22186

Published: March 9, 2021


Vulnerability identifier: #VU51271
CSH Severity: Medium
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-22186
CWE-ID:
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The vulnerability exists due to incorrect permission checks in the API. A remote authenticated user with privileges of a group maintainer can modify group CI/CD variables, which should be restricted to group owners.


Affected software

GitLab Enterprise Edition
Gitlab Community Edition

How to mitigate CVE-2021-22186

Install updates from vendor's website.

GitLab Enterprise Edition - addressed in versions 13.7.8, 13.8.5, 13.9.2
Gitlab Community Edition - addressed in versions 13.7.8, 13.8.5, 13.9.2

External References

Related Security Bulletins