CVE-2025-6168
GitLab vulnerability analysis and mitigation

Overview

CVE-2025-6168 is an incorrect authorization vulnerability in GitLab Enterprise Edition (EE) that allows authenticated maintainers to bypass group-level user invitation restrictions via crafted API requests. It affects GitLab EE versions 18.0.0 through 18.0.3 and 18.1.0 through 18.1.1. The vulnerability was disclosed on July 10, 2025, with patches released on July 9, 2025. It carries a CVSS v3.1 base score of 2.7 (Low) (GitLab Advisory, Red Hat CVE).

Technical details

The root cause is classified as CWE-863 (Incorrect Authorization), where the GitLab EE API fails to properly enforce group-level user invitation restrictions for maintainer-role users. An authenticated maintainer can send specially crafted API requests that circumvent the access control checks intended to restrict who can invite users to a group. Exploitation requires network access and a valid maintainer-level account, but no special configuration or user interaction is needed. The vulnerability was originally reported via HackerOne (report #3196745) and tracked in GitLab issue #549725 (GitLab Advisory, ENISA EUVD).

Impact

Successful exploitation allows an authenticated maintainer to invite users to a GitLab group in violation of administrator-configured invitation restrictions, potentially bypassing organizational access control policies. The primary impact is a limited confidentiality exposure — unauthorized users could gain access to group resources, repositories, or sensitive project data that they should not be permitted to access. Integrity and availability are not directly affected, and the scope is limited to the affected group context without privilege escalation beyond the maintainer's existing role (Red Hat CVE, Security Online).

Exploitability

No public proof-of-concept exploit code or evidence of in-the-wild exploitation has been reported for CVE-2025-6168. The EPSS score is approximately 0.011% (0.000110), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires an authenticated maintainer account, significantly limiting the attacker pool (ENISA EUVD, GitLab Advisory).

Exploitation steps

  1. Authentication: Log in to a GitLab EE instance (versions 18.0.0–18.0.3 or 18.1.0–18.1.1) with a maintainer-level account for a target group.
  2. Identify restrictions: Confirm that the group has administrator-configured user invitation restrictions in place (e.g., domain allowlists or invitation limits).
  3. Craft API request: Construct a crafted API request (e.g., using the GitLab REST API endpoint for group member invitations) that bypasses the server-side authorization checks enforcing the invitation restrictions.
  4. Send request: Submit the crafted API request, successfully inviting an unauthorized user to the group in violation of the configured restrictions.
  5. Unauthorized access: The invited user gains access to group resources, repositories, or project data that the invitation restrictions were intended to prevent (GitLab Advisory, ZeroPath Blog).

Indicators of compromise

  • Logs: GitLab application logs showing group member invitation API calls (POST /api/v4/groups/:id/invitations) from maintainer accounts that result in successful invitations despite active invitation restrictions being configured.
  • Logs: Audit log entries for unexpected user additions to groups, particularly users from outside allowed domains or exceeding configured invitation limits.
  • Network: Unusual or automated API request patterns targeting group invitation endpoints from maintainer accounts, especially with non-standard request parameters.
  • Application: Presence of group members who do not match the organization's configured invitation policy (e.g., external domain users in domain-restricted groups) (GitLab Advisory).

Mitigation and workarounds

GitLab has released patched versions 18.0.4 and 18.1.2, which address this vulnerability. Administrators should upgrade affected GitLab EE instances to these versions or later as the primary remediation. As a temporary workaround, administrators can review and audit group membership and invitation logs for unauthorized additions, and consider temporarily restricting maintainer permissions for sensitive groups until patching is complete (GitLab Advisory, Security Online).

Community reactions

GitLab disclosed the vulnerability as part of a broader patch release on July 9, 2025, which also addressed XSS and other authorization bypass flaws. Security news outlets including SecurityOnline, GBHackers, and CyberSecurityNews covered the patch release, noting the authorization bypass issues. Community discussion on Mastodon (infosec.exchange) highlighted the patch release without significant alarm given the low CVSS score. ZeroPath published a technical blog post analyzing CVE-2025-6168 in the context of GitLab EE authorization bypass patterns (GitLab Advisory, Security Online, ZeroPath Blog).

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-2026-18252HIGH7.3
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 26, 2026
CVE-2026-77801MEDIUM6.5
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 26, 2026
CVE-2026-3035MEDIUM5.5
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 26, 2026
CVE-2026-15387MEDIUM4.3
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 26, 2026
CVE-2026-7487LOW3.5
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 26, 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