CyberWatch

Gitlab Critical Vulnerability Can Allow Account Takeover

By

By

Access Point Consulting

Summary

A vulnerability is present in GitLab Enterprise and Community, a popular DevSecOps platform, which is identified as CVE-2023-7028. This vulnerability has a CVSS score of 10.0 Critical according to GitLab Inc. and allows for an account-take-over of a GitLab administrator account without user interaction. This can be done by a remote attacker by sending two emails for a password reset query which will send a password reset request to both emails.

Impact Assessment

This vulnerability has a Critically high CVSS score allowing for a remote attacker to gain controller of a GitLab administrator account. This vulnerability has a very high impact due to low attack complexity, lack of permissions required, and lack of user interaction required for exploitation.

Affected Software

GitLab Community Edition (CE)/Enterprise Edition (EE) affecting all versions from 16.1 prior to 16.1.6, 16.2 prior to 16.2.9, 16.3 prior to 16.3.7, 16.4 prior to 16.4.5, 16.5 prior to 16.5.6, 16.6 prior to 16.6.4, and 16.7 prior to 16.7.2

What it means for you

Checking your organization’s software inventory for instances of GitLab CE or EE, if you have instances referring to remediation and mitigation section below is advised.

Remediation

Upgrading your GitLab Community or Enterprise Edition to version 16.7.2, 16.6.4, 16.5.6 or later will remediate this vulnerability.

A highly recommended mitigation is to ensure Two-Factor-Authentication is configured for the administrator account. According to GitLab, the vulnerability cannot be exploited if 2FA is enabled.

Business Implications

Exploitation of this vulnerability could allow for a catastrophic loss of data, reputation, and capital. Depending on the use of GitLab, code could be changed, access to software development tools could be lost, if used for security that can also be compromised. It is possible the attacker can utilize the automated software delivery feature to push malware infested code to end users which can be detrimental to an organization’s reputation. Many things are at stake depending on what the attacker wants to do with the access and what the organization’s response is to the breach.

Access Point Technology Recommends

Patch: Patching the vulnerability is the best way to prevent exploitation. The versions which are not affected are listed above in the remediation section.

2FA: Enabling Two-Factor-Authentication is one of the best account security tools, and in this instance it will prevent this vulnerability from being exploited as a mitigation. However, 2FA should be used in all accounts as it gives an extra layer of authentication helping to prevent leaked passwords from compromising accounts.

Monitor: There are indicators that his vulnerability has been exploited which should be checked by analysts.

  1. Check gitlab-rails/production_json.log for HTTP requests to the /users/password path with params.value.email consisting of a JSON array with multiple email addresses.
  2. Check gitlab-rails/audit_json.log for entries with meta.caller_id of PasswordsController#create and target_details consisting of a JSON array with multiple email addresses.

Associated Bulletins

https://about.gitlab.com/releases/2024/01/11/critical-security-release-gitlab-16-7-2-released/#account-takeover-via-password-reset-without-user-interactions

https://github.com/Vozec/CVE-2023-7028?tab=readme-ov-file

Resources

Latest Resources

Resources

CyberWatch

April 2, 2025

Scott "Monty" Montgomery (Island) | Navigating CMMC compliance for organizations of every size

Scott Montgomery, known as Monty, joined the CyberWatch Expert Series podcast to discuss his extensive background in cybersecurity, particularly in building and designing network security tools for high-assurance environments like the Department of Defense (DoD) and the intelligence community. His experience includes significant tenure at McAfee (now Trellix), which led him to his current role at Island, where he focuses on innovative approaches to cybersecurity compliance.

Find out more
March 19, 2025

Michael Sviben (DomainGuard) | Defending against phishing and building proactive security awareness

Cybersecurity threats evolve rapidly, and one tactic consistently rises above the rest: phishing. In this episode of CyberWatch, Michael Sviben, co-founder of DomainGuard, discusses why phishing remains so effective, how businesses and individuals become targets, and what you can do to stay vigilant.

Find out more
March 5, 2025

David Habib (Brightspot) | Building a culture of cybersecurity awareness

Cybersecurity awareness is often reduced to check-the-box training, but David Habib, CIO at Brightspot, argues that real security awareness isn’t about formal programs—it’s about making security part of a company’s culture. In this episode, he shares practical insights on how organizations can move beyond stale training sessions to create an engaged and security-conscious workforce.

Find out more