CVE-2021-22240
GitLab vulnerability analysis and mitigation

Overview

Improper access control vulnerability (CVE-2021-22240) was discovered in GitLab Enterprise Edition (EE) affecting versions 13.11.6, 13.12.6, and 14.0.2. The vulnerability allows users to be created via single sign-on despite user cap being enabled (NVD).

Technical details

The vulnerability has been assigned a CVSS v3.1 Base Score of 4.3 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N. The weakness is categorized as CWE-863 (Incorrect Authorization). The issue specifically occurs when the omniauthblockautocreatedusers setting is enabled but fails to properly enforce user creation restrictions through SSO (GitLab Issue).

Impact

When exploited, this vulnerability allows unauthorized user creation through single sign-on authentication, bypassing the configured user cap limitations. This could lead to exceeding licensed user limits and potentially impact resource allocation and access control mechanisms (NVD).

Mitigation and workarounds

The vulnerability has been fixed in GitLab Enterprise Edition versions after 13.11.6, 13.12.6, and 14.0.2. Organizations should upgrade to the patched versions to prevent unauthorized user creation through SSO (NVD).

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-8405HIGH8.7
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-12029HIGH8
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-11984MEDIUM6.8
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-4097MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-12734LOW3.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 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