CVE-2021-39897
GitLab vulnerability analysis and mitigation

Overview

Improper access control vulnerability in GitLab CE/EE version 10.5 and above allowed subgroup members with inherited access to a project from a parent group to maintain access even after the subgroup is transferred. The vulnerability was discovered in 2021 and was assigned identifier CVE-2021-39897 (GitLab Security Release).

Technical details

The vulnerability stems from an access control issue where users who gained access to a project through group inheritance maintained their access privileges even after organizational changes. When a project is shared with a subgroup, users from parent groups receive inherited access. However, if the subgroup is transferred to another parent group, the users from the original parent group retained their access instead of having it properly revoked (GitLab Issue).

Impact

The vulnerability could result in unauthorized access to private projects. In worst-case scenarios, users could retain maintainer-level access to projects even after organizational changes, allowing them to access project settings and repositories without the project owner's knowledge. This created a situation where projects could have 'ghost' members with access levels ranging from Guest to Maintainer (GitLab Security Release).

Mitigation and workarounds

The vulnerability was patched in GitLab versions 14.4.1, 14.3.4, and 14.2.6. Organizations were strongly recommended to upgrade to these versions or later to address the security issue. As a temporary workaround before patching, project owners could review and modify project access settings, as inviting a new group would remove all hidden members (GitLab Security 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-9222HIGH8.7
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026
CVE-2025-11224HIGH7.7
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 14, 2026
CVE-2026-0723HIGH7.4
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 20, 2026
CVE-2025-13781MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026
CVE-2025-3950LOW3.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026

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