CVE-2024-1525
Description
An issue has been discovered in GitLab CE/EE affecting all versions starting from 16.1 before 16.7.6, all versions starting from 16.8 before 16.8.3, all versions starting from 16.9 before 16.9.1. Under some specialized conditions, an LDAP user may be able to reset their password using their verified secondary email address and sign-in using direct authentication with the reset password, bypassing LDAP.
Summary dbcve.org
In affected GitLab CE/EE versions (16.1-16.7.6, 16.8-16.8.3, 16.9-16.9.1), an LDAP user with a verified secondary email address can reset their account password through the standard password reset flow using that secondary email. This allows them to subsequently authenticate directly (non-LDAP) with the new password, bypassing the LDAP authentication requirement that should be enforced for their account.
Mitigation
Upgrade GitLab to version 16.7.6, 16.8.3, 16.9.1 or later. In the interim, consider disabling the password reset feature for LDAP-synced users or enforcing LDAP-only authentication policies.