CVE-2021-22197
GitLab vulnerability analysis and mitigation

Overview

An infinite loop vulnerability was discovered in GitLab CE/EE affecting all versions starting from 10.6. The issue occurs when an authenticated user with specific rights accesses a Merge Request (MR) where the source and target branches point to each other. This vulnerability was discovered internally by the GitLab team and was assigned CVE-2021-22197 (GitLab Release).

Technical details

The vulnerability is classified as a Loop with Unreachable Exit Condition (Infinite Loop) under CWE-835. It received a CVSS v3.1 Base Score of 3.5 (LOW) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L from GitLab Inc., while the NVD assessment rated it at 4.3 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L (NVD).

Impact

The vulnerability affects system availability by causing an infinite loop when specific conditions are met in merge request operations. The impact is limited to authenticated users with specific rights, potentially causing resource consumption and affecting system performance (GitLab Release).

Mitigation and workarounds

The vulnerability was addressed in GitLab security releases 13.10.1, 13.9.5, and 13.8.7. GitLab strongly recommends that all installations running affected versions be upgraded to the latest version as soon as possible (GitLab Release).

Additional resources


SourceThis report was generated using AI

Related GitLab vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-12571HIGH7.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
NoYesNov 26, 2025
CVE-2025-7449MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesNov 26, 2025
CVE-2025-12653MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesNov 26, 2025
CVE-2025-13611MEDIUM5.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
NoYesNov 26, 2025
CVE-2025-6195MEDIUM4.3
  • GitLabGitLab
  • gitlab
NoYesNov 26, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management