CVE-2021-22251
GitLab vulnerability analysis and mitigation

Overview

Improper validation of invited users' email address in GitLab Enterprise Edition (EE) affecting all versions since 12.2 allowed projects to add members with email address domains that should have been blocked by group settings. The vulnerability was discovered in 2019 and was officially assigned CVE-2021-22251 on January 5, 2021, with public disclosure on August 23, 2021 (MITRE CVE, NVD).

Technical details

The vulnerability stems from an implementation flaw in GitLab's domain restriction feature, which was designed to restrict group access to users with specific email domains. While the restriction worked at the group level, it failed to properly enforce these restrictions at the project level, allowing project maintainers to bypass the domain restrictions. The vulnerability has been assigned a CVSS v3.1 score of 4.3 (Medium) and a CVSS v2.0 score of 4.0 (Medium) (NVD).

Impact

The vulnerability allows unauthorized users with different email domains to be added to projects, even when group settings explicitly restrict membership to specific email domains. This bypasses the intended security controls and could potentially lead to unauthorized access to project resources (GitLab Issue).

Mitigation and workarounds

The vulnerability was addressed in subsequent GitLab releases. Organizations using affected versions should upgrade to a patched version. As a temporary workaround, administrators should carefully monitor project-level member additions and implement additional access review processes (GitLab CVE).

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-7449MEDIUM6.5
  • GitLabGitLab
  • gitlab
NoYesNov 26, 2025
CVE-2025-12653MEDIUM6.5
  • GitLabGitLab
  • gitlab
NoYesNov 26, 2025
CVE-2024-9183MEDIUM6.4
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 05, 2025
CVE-2025-13611MEDIUM5.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
NoYesNov 26, 2025
CVE-2025-6195MEDIUM4.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab: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