CVE-2021-39889
GitLab vulnerability analysis and mitigation

Overview

In all versions of GitLab Enterprise Edition (EE) since version 14.1, an insecure direct object reference (IDOR) vulnerability was discovered that could expose protected branch names. The vulnerability allows a malicious user to reveal protected branch names by making crafted API calls with specific branch IDs (GitLab Security Release, CVE Details).

Technical details

The vulnerability exists in the Status Checks feature of GitLab's merge request section. Due to improper access controls, an attacker could manipulate the protectedbranchids parameter in API requests to obtain branch names from private projects, even without having access to those projects. The vulnerability was assigned a medium severity rating with a CVSS score indicating limited impact (GitLab Security Release).

Impact

The vulnerability allows unauthorized users to discover protected branch names of private projects they don't have access to. Since branch IDs are sequential, an attacker could potentially enumerate and obtain multiple protected branch names across different projects (GitLab Security Release).

Mitigation and workarounds

The vulnerability was patched in GitLab versions 14.3.1, 14.2.5, and 14.1.7. Users are strongly recommended to upgrade to one of these versions or later to address this security issue (GitLab Security Release).

Community reactions

The vulnerability was responsibly disclosed through GitLab's HackerOne bug bounty program by security researcher @ashishrpadelkar (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-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