
Cloud Vulnerability DB
A community-led vulnerabilities database
A Denial of Service (DoS) vulnerability was identified in gitlab-shell in GitLab CE/EE version 12.6.0 and above. The vulnerability, tracked as CVE-2021-22177, was discovered in 2021 and allows attackers to cause server resource utilization spikes through the gitlab-shell command (GitLab CVE, Debian Tracker).
The vulnerability exists in the gitlab-shell component's handling of 2FA recovery codes. Specifically, when executing the '2farecoverycodes' command, gitlab-shell reads user confirmation input without proper size limitations. The issue is present in the twofactorrecover.go file, where user input is read directly into a variable without bounds checking. The vulnerability has a CVSS v3.1 score of 4.3 (MEDIUM) and a CVSS v2.0 score of 4.0 (MEDIUM) (NVD Results).
When exploited, the vulnerability can cause gitlab-shell to consume 100% CPU of one core and gradually increase memory usage over time. This can lead to a denial of service condition affecting the GitLab server's operations (GitLab Issue).
The issue has been fixed in subsequent GitLab releases. For Debian systems, the fix is available in version 17.3.5-3 of the gitlab package (Debian Tracker).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."