Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2023-7028: GitLab CE/EE Password Reset Account Takeover

Published Jan 12, 2024 · Updated 19 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS79.2%100th percentile
CISA KEVYesAdded May 1, 2024
In the wildActivePer CISA KEV
Vendor
GitLab
IdentifiersCVE-2023-7028CWE-640 · Weak Password Recovery Mechanism…

CVE-2023-7028 is an unauthenticated account takeover vulnerability in GitLab Community Edition and Enterprise Edition password reset handling. An email verification flaw introduced with secondary-email password reset support allows a crafted request containing multiple email addresses to deliver a target account's password reset message to an attacker-controlled, unverified address. Affected releases are 16.1 before 16.1.6, 16.2 before 16.2.9, 16.3 before 16.3.7, 16.4 before 16.4.5, 16.5 before 16.5.6, 16.6 before 16.6.4, and 16.7 before 16.7.2. Exploitation requires no victim interaction and can enable account takeover when two-factor authentication is not enabled. The flaw resides in the GitLab Rails application and does not affect GitLab Runner.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

An attacker can reset another user's password and, without a second-factor requirement, authenticate with that account's privileges. Compromise can expose private repositories, source code, project data, and accessible secrets, and permit unauthorized repository or CI/CD changes. Compromise of a privileged account increases the scope of potential administrative abuse. Two-factor authentication does not prevent the unauthorized password reset but prevents account takeover through this flaw alone without the second factor. The vulnerability is actively exploited and was added to CISA's Known Exploited Vulnerabilities catalog on May 1, 2024; it does not itself provide direct remote code execution.

Mitigation

If you can’t patch tonight, do this now.

Enforce two-factor authentication for all accounts, especially privileged accounts. This limits account takeover but does not prevent an attacker from resetting a password. For self-managed deployments using an external identity provider, disable all password authentication options through GitLab sign-in restrictions as a temporary mitigation. Apply the security update rather than relying solely on these controls.

Remediation

Patch, then assume compromise.

Upgrade GitLab CE/EE to a currently supported, patched release. The first fixes for this vulnerability were released in 16.1.6, 16.2.9, 16.3.7, 16.4.5, 16.5.6, 16.6.4, and 16.7.2 for their respective branches. GitLab subsequently recommended 16.5.7, 16.6.5, 16.7.3, or newer to address an additional database migration issue in the earlier patch set. Review password reset request and audit logs for email parameters containing arrays of multiple addresses and investigate affected accounts for unauthorized access or changes.

Public exploits

Exploits

9 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.

View more in app →
gitlab_password_reset_account_takeover.rbThis repository contains a single Metasploit auxiliary module that exploits CVE-2023-7028, a critical account takeover vulnerability in GitLab's password reset functionality. The exploit targets specific vulnerable versions of GitLab (16.1 < 16.1.6, 16.2 < 16.2.9, 16.3 < 16.3.7, 16.4 < 16.4.5, 16.5 < 16.5.6, 16.6 < 16.6.4, 16.7 < 16.7.2) and allows an attacker to receive a password reset link for a victim's account by submitting both the victim's and attacker's email addresses in the reset request. The module interacts with the GitLab web interface, first obtaining a CSRF token from the sign-in page and then sending a POST request to the password reset endpoint. If successful, the attacker can reset the victim's password and take over the account. The exploit does not work if the target account has 2-factor authentication enabled. The code is written in Ruby and is designed to be run within the Metasploit framework.Disclosed Jan 11, 2024 · Framework: metasploit · ruby · networkWeaponizedCVE-2023-7028This repository provides a Python proof-of-concept exploit for CVE-2023-7028, a critical account takeover vulnerability in GitLab (versions 16.1 to 16.7.1). The exploit leverages a flaw in the password reset process, where an attacker can supply both the victim's and their own email addresses, causing the reset link to be sent to both. The script automates the attack by either using a supplied attacker email or generating a temporary email via 1secmail.com, then submitting the crafted reset request to the target GitLab instance. It can operate in single-target or mass-attack modes (using an email list), and supports rate limiting and a 'skip' mode for reconnaissance. The repository contains one main exploit script (CVE-2023-7028.py), a README with detailed usage instructions and examples, and a .gitignore. The exploit is operational and can result in full account takeover if the target does not have 2FA enabled. No fake or destructive code is present; the exploit is focused and functional.szybnev · Disclosed Jul 21, 2025 · python · networkOperationalabyss-c2This repository is a multi-module Python offensive framework centered on exploiting HiSilicon DVR/NVR/IP camera devices via CVE-2020-25078, then managing compromised hosts through a Flask/SocketIO web panel. It is not a simple single-file PoC: it includes a control server (server.py), persistence and post-exploitation tooling, credential attacks, recon modules, web vulnerability scanners, network service checks, pivoting, reverse shell support, and a SQLite-backed datastore. Core exploit logic is in exploit.py and scanner.py. exploit.py probes numerous traversal/disclosure paths such as /../../.../mnt/mtd/Config/Account1 and related config/system files, parses returned content with multiple regex patterns to recover credentials, fingerprints device families, and falls back to known default credentials when disclosure succeeds but parsing does not. scanner.py operationalizes this by scanning IPs/CIDRs and common ports, checking liveness, fingerprinting likely cameras, invoking the CVE-2020-25078 checks, and storing recovered credentials in cameras.db. Post-exploitation capability is substantial. telnet_client.py provides raw Telnet login and command execution. botnet.py fans out commands across stored hosts. persistence.py installs SSH authorized_keys, cron, rc.local, init.d, systemd, inittab telnetd, and bind-shell style persistence. reverse_shell.py generates many Linux/IoT reverse shell one-liners and runs listeners. pivot_chain.py and socks_pivot.py support chained execution and local SOCKS5 pivoting through compromised hosts. Additional modules broaden scope beyond the HiSilicon exploit: brute.py and cred_spray.py perform credential attacks across Telnet, SSH, FTP, HTTP, SMB, databases, VNC, LDAP, WinRM, and more; network_exploit.py checks for exposed/misconfigured services and some well-known vulnerabilities such as MS17-010 and BlueKeep; web_exploit.py, web_cves.py, web_bugs.py, and web_brute.py scan websites for exposed files, CMS fingerprints, generic bug classes, and multiple CVE signatures. Recon/intel support includes ASN, DNS, GeoIP, JARM, WAF detection, proxy/Tor rotation, screenshot grabbing from camera snapshot endpoints, and Telegram/Discord/AbuseIPDB integrations. The repository structure is coherent and functional, with many CLI-capable modules and a central web UI in templates/index.html. Overall, this is an operational exploit-and-post-exploitation toolkit focused on HiSilicon IoT devices but expanded into a broader C2-style offensive platform.flags-alt · Disclosed May 20, 2026 · python · html · network · web · localOperationalGitLab-CVE-2023-7028This is a 17-file Node.js/Express educational lab, not an exploit client against a remote GitLab deployment. Its main entry point, server.js, implements a host-only mock of vulnerable GitLab CE/EE 16.6.0 password recovery behavior for CVE-2023-7028. Express urlencoded parsing with extended:true accepts user[email][] arrays; the vulnerable flow identifies the target account using the first supplied email but sends one generated reset token to all supplied addresses. Consequently, an unauthenticated request containing a victim email followed by attacker@evil.com exposes the victim reset token to the attacker and permits password replacement through the reset-edit flow. The application binds to 127.0.0.1 and uses no real SMTP or external network service. Repository components include server-side JavaScript, GitLab-styled HTML views, frontend helper JavaScript, CSS/SVG assets, and JSON files for users, reset tokens, and a mock mailbox. The mailbox and JSON APIs are intentionally included to make token disclosure observable during local demonstrations.FearThePLOTO · Disclosed Sep 6, 2026 · javascript · html · webOperationalCVE-2023-7028This repository contains a Python proof-of-concept exploit for CVE-2023-7028, a critical vulnerability in GitLab CE/EE that allows attackers to trigger a password reset for arbitrary users and redirect the reset email to an attacker-controlled address. The exploit script (CVE-2023-7028.py) takes as input the target GitLab instance URL, the victim's email, and the attacker's email. It first fetches a CSRF token from the password reset page, then submits a specially crafted POST request to the password reset endpoint, specifying both the victim and attacker emails. If the target is vulnerable, the attacker receives a password reset email for the victim account, potentially enabling account takeover. The README.md provides background on the vulnerability, affected versions, and usage instructions. The exploit targets self-managed GitLab instances running specific vulnerable versions and requires network access to the target instance.RandomRobbieBF · Disclosed Jan 12, 2024 · python · markdown · networkPoCCVE-2023-7028This repository contains a Python proof-of-concept exploit for CVE-2023-7028, a critical account takeover vulnerability in GitLab (versions 16.1 to 16.7.1). The exploit leverages a flaw in the password reset process, where a reset request can be sent to both the victim's and attacker's email addresses. The script automates the attack by either using a supplied attacker email or generating a temporary email via 1secmail.com. It submits a crafted password reset request to the target GitLab instance, monitors the attacker's inbox for the reset link, and completes the password reset process, ultimately providing the attacker with access to the victim's account. The repository consists of the main exploit script (CVE-2023-7028.py) and a README.md with detailed usage instructions, affected versions, and references. The exploit is a POC and does not include advanced payload customization or post-exploitation features.Vozec · Disclosed Jan 12, 2024 · python · markdown · networkPoCCVE-2023-7028This repository contains a Python exploit script (attack.py) and a README.md describing the exploitation of CVE-2023-7028, a critical password reset poisoning vulnerability in GitLab. The exploit automates the process of sending a crafted password reset request to the /users/password endpoint, specifying both the victim's and an attacker-controlled email address. This results in password reset emails being sent to both addresses, allowing the attacker to reset the victim's password and take over their account. The script requires Python 3.x and the requests library, and is run from the command line with the target GitLab URL, victim's email, and attacker's email as arguments. The README provides detailed usage instructions and describes the manual steps to complete the account takeover. The exploit targets GitLab instances vulnerable to CVE-2023-7028 and demonstrates a proof-of-concept for this attack vector.sariamubeen · Disclosed Feb 17, 2025 · python · networkPoCCVE-2023-7028-GitLabThis repository contains a proof-of-concept exploit for CVE-2023-7028, a vulnerability in GitLab's password reset functionality. The exploit is implemented in Python (attack.py) and automates the process of sending a crafted password reset request to a vulnerable GitLab instance. By supplying both a victim's and an attacker's email address in the request, the script triggers password reset emails to both, potentially allowing the attacker to hijack the victim's account if they can access the reset link. The script disables SSL verification warnings, fetches a CSRF token from the /users/password/new endpoint, and submits the malicious request to /users/password. The repository also includes a README.md with usage instructions. No hardcoded IPs or domains are present; the target URL is supplied by the user. The exploit is a standalone script and not part of a larger framework.Sornphut · Disclosed Mar 29, 2025 · python · networkPoCExploiting-GitLab-CVE-2023-7028This repository contains a Python proof-of-concept exploit for CVE-2023-7028, a vulnerability in GitLab's password reset functionality. The exploit consists of a single script, 'exploit.py', which automates the process of exploiting the vulnerability by sending a password reset request with both the victim's and attacker's email addresses. The script first fetches a CSRF token from the GitLab instance, then submits a POST request to the password reset endpoint with a specially crafted payload. The README.md briefly states the exploit's purpose. The exploit targets network-accessible GitLab instances and requires the attacker to know the victim's email address. The endpoints targeted are the password reset pages of the GitLab web application. The code is a functional proof-of-concept and does not include weaponized or framework-level features.KameliaZaman · Disclosed Aug 5, 2025 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
GitLabGitlabapplication
FAQ

Frequently asked questions

Is CVE-2023-7028 exploited in the wild?
Yes. As of Nov 9, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on May 1, 2024.
Is there a public exploit for CVE-2023-7028?
Yes. Mallory tracks 9 public exploits or proofs of concept for CVE-2023-7028, the earliest disclosed Jan 11, 2024.
Is there a patch for CVE-2023-7028?
Upgrade GitLab CE/EE to a currently supported, patched release. The first fixes for this vulnerability were released in 16.1.6, 16.2.9, 16.3.7, 16.4.5, 16.5.6, 16.6.4, and 16.7.2 for their respective branches.
What products are affected by CVE-2023-7028?
Gitlab.
How severe is CVE-2023-7028?
CVE-2023-7028 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 79.2% (100th percentile) as of Nov 9, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware5Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.