GitLab's password reset flaw: when the right account meets the wrong inbox
GitLab's 2024 password recovery flaw sent valid reset links to unrelated inboxes. A retrospective on recipient binding, the protection MFA retained, and how to test recovery safely.
GitLab's password reset flaw: when the right account meets the wrong inbox
GitLab's CVE-2023-7028 let a password recovery request send a valid reset link to an address that did not belong to the account being recovered. An attacker could change another user's password without that person's help. The failure was in deciding who should receive the link, not in guessing the token (GitLab security advisory; original GitLab report).
This is a retrospective of the vulnerability patched on January 11, 2024, not a new disclosure. GitLab credited asterion04 for reporting it through its HackerOne bug bounty program. The public GitLab issue identifies the original report as December 20, 2023 (GitLab security advisory; original GitLab report). Its lasting value for researchers is a precise authorization question: after finding an account, does the recovery system still prove that every recipient is allowed to recover it?
One input, two security decisions
GitLab's advisory says the flaw followed a change in version 16.1.0 that allowed password recovery through a secondary email address. Recovery messages could subsequently reach an unverified address (GitLab security advisory). Supporting secondary addresses is useful, but it increases the number of relationships the application must check. An address being present in a request is different from that address being confirmed and associated with the selected account.
The original report describes supplying the account's email address together with another address in an array under user.email. The reset message reached both inboxes, and the reporter could use the received link to change the account password (original GitLab report). That report establishes the observable behavior. It does not require a theory about weak randomness, stolen mail credentials, or someone persuading the account owner to click a link.
Two decisions had become improperly coupled. One address identified a legitimate account. The supplied collection also influenced where the recovery message went. Finding a valid account through one member of that collection did not establish that the other member belonged to it. This is the missing ownership check that matters: the account being recovered and the recipient receiving recovery authority must remain bound together.
CVE-2026-99362 turns a small NFSv4.1 and NFSv4.2 reply-cache negotiation value into a kernel memory corruption boundary. Here is what the primary records show about scope, exploit evidence, patch status, and safe containment.
CVE-2026-138445 shows how Umami's Reports API let a client supplied filter prefix reach PostgreSQL query structure. The patch is a precise lesson in separating request data from SQL identifiers, and in verifying source revisions when a fix lands after the latest release.
Nov 30, 2026 / Jahan
A valid token cannot repair that mistake. If the service creates a perfectly unpredictable token for the correct account and sends it to an unauthorized inbox, the recipient receives the authority the token was supposed to protect. Shorter expiry and single use would limit the token's lifetime, but neither would establish ownership of its destination.
Illustration of the reported vulnerable flow. Selecting the right account did not make every supplied recipient an authorized recovery address.
Why MFA changed the outcome
GitLab explicitly separated password reset from account takeover. Accounts with two factor authentication enabled were still vulnerable to a password change, but the attacker could not complete login through this flaw because the second factor remained necessary (GitLab security advisory). Describing the issue as an MFA bypass would erase an important limit on its impact.
That distinction also prevents the opposite mistake: treating MFA as a complete fix. An unauthorized password change is still an unauthorized change to an authentication credential. It creates a recovery problem for the owner even when the second factor stops the next login. The appropriate security goal is to prevent the password change, not merely hope that a later control catches the attacker.
For accounts without that second factor, the report describes a direct route from receiving the reset link to logging in with a new password (original GitLab report). Access would then depend on the compromised account's existing privileges. A developer account and an administrator account should not be described as having identical consequences, and the ability to take over an account does not prove that a particular repository or deployment was altered.
SSO also needs a configuration qualifier. GitLab's advisory says users without SSO enforcement were vulnerable when username and password authentication remained available. It describes disabling all password authentication options as a mitigation for affected installations with an external identity provider, because that also disables password reset (GitLab security advisory). Merely displaying an SSO button does not establish that a separate recovery path is closed.
Illustration of GitLab's documented impact distinction. Two factor authentication blocked account takeover through this flaw, but did not prevent the password change.
What the historical fix actually covered
The January 2024 advisory lists vulnerable GitLab CE and EE release branches beginning with 16.1. The historical fixed versions were 16.1.6, 16.2.9, 16.3.7, 16.4.5, 16.5.6, 16.6.4, and 16.7.2 (GitLab security advisory). Those numbers identify the fix boundaries for this incident. They are not a recommendation to install an old release in 2026.
The advisory also carries a followup warning about a database migration issue, directing readers to 16.7.3, 16.6.5, 16.5.7, or newer. It warns administrators not to skip required upgrade stops (GitLab security advisory). An operator reviewing an old instance should establish its current version and supported upgrade path rather than choose a historical patch number from a retrospective.
GitLab says it revised the implementation so that reset requests no longer supported submitting multiple email addresses. It also added tests covering password reset logic, email handling, email generation, and message content (GitLab security advisory). The useful engineering lesson is broader than rejecting arrays: tests must follow recovery authority into the actual message recipient, rather than stop when account lookup returns the expected user.
Scope matters here too. The advisory identifies the affected component as the GitLab Rails codebase and explicitly excludes GitLab Runner (GitLab security advisory). Updating a runner would not repair a vulnerable recovery endpoint on the GitLab instance.
Testing the binding without taking someone else's account
For bug bounty work, this case suggests a focused testing method, not permission to probe arbitrary GitLab installations. Start with explicit authorization, the program's current scope, and accounts and inboxes you control. A password reset can change credentials and interrupt access, so permission for a target does not automatically make every recovery experiment acceptable.
Use separate controlled identities to distinguish account selection from delivery. The important observation is whether an inbox that has never been confirmed for the selected account receives a usable recovery message. Record the account's verified address relationships before testing. Otherwise, delivery to a legitimate secondary address could be mistaken for a vulnerability.
Where the rules allow it, compare accepted input shapes and inspect the resulting mail in an isolated environment. Check that unexpected collections or ambiguous parameters cannot expand the recipient set. Avoid bulk requests, unrelated users, and tests that depend on accessing real customer content. If proving usability requires changing a password, do that only for your own test account and only when the program permits it.
A useful report should preserve the distinction between a received message, a usable reset token, a successful password change, and a completed login. Include the MFA configuration because it changes the demonstrated impact. Redact tokens from shared evidence and stop when the authorized proof is sufficient. These are testing recommendations derived from the failure, not a claim that this article's author reproduced it.
Recovery security after the patch
GitLab's advisory supplies concrete investigation leads: requests to /users/password in gitlab-rails/production_json.log where params.value.email contains an array of multiple addresses, and entries in gitlab-rails/audit_json.log with meta.caller_id set to PasswordsController#create and multiple addresses in target_details (GitLab security advisory). These are leads for investigation, not proof that a login or data theft succeeded.
The timeline needs equal care. GitLab's advisory said it had not detected abuse on GitLab managed platforms, including GitLab.com and GitLab Dedicated. On May 1, 2024, CISA added CVE-2023-7028 to its Known Exploited Vulnerabilities Catalog based on evidence of active exploitation (GitLab security advisory; CISA exploitation notice). The earlier vendor statement must not be stretched into a claim that exploitation never occurred. CISA's notice does not identify every affected organization or establish exploitation of a particular installation.
For suspected compromise, GitLab recommended applying the security release, enabling two factor authentication, following incident response procedures, and rotating secrets stored in GitLab, including account credentials, API tokens, and certificates (GitLab security advisory). Patching prevents this recovery flaw from granting new access. It does not establish that credentials exposed before the patch are safe.
For developers building recovery systems, make the recipient decision explicit. Resolve the account, select an eligible verified address associated with that account from trusted server state, and test the complete delivery path. Treat any change that adds recovery addresses as a change to authentication authority. The regression test worth keeping is the one that proves an unrelated controlled inbox cannot receive the selected account's reset capability.