In all versions of GitLab CE/EE since version 14.1, an improper access control vulnerability allows users with expired password to still access GitLab through git and API through access tokens acquired before password expiration.
https://hackerone.com/reports/1285226
https://gitlab.com/gitlab-org/gitlab/-/issues/337954
https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-39872.json