CWE
287
Advisory Published
Updated

CVE-2021-39872

First published: Tue Oct 05 2021(Updated: )

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.

Credit: cve@gitlab.com

Affected SoftwareAffected VersionHow to fix
GitLab>=14.1.0<14.1.7
GitLab>=14.1.0<14.1.7
GitLab>=14.2.0<14.2.5
GitLab>=14.2.0<14.2.5
GitLab=4.3.0
GitLab=4.3.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-39872?

    CVE-2021-39872 is classified as a high severity vulnerability due to improper access control allowing expired users to access GitLab via access tokens.

  • How do I fix CVE-2021-39872?

    To mitigate CVE-2021-39872, users should upgrade to GitLab versions 14.1.8, 14.2.6, or later where this vulnerability is patched.

  • What versions of GitLab are affected by CVE-2021-39872?

    CVE-2021-39872 affects all versions of GitLab CE/EE starting from 14.1.0 up to and including 14.1.7 and 14.2.0 up to and including 14.2.5.

  • Who is impacted by CVE-2021-39872?

    Users with expired passwords are impacted by CVE-2021-39872, as they can still access GitLab through git and API using previously acquired access tokens.

  • Are there any workarounds for CVE-2021-39872?

    Currently, the recommended solution for CVE-2021-39872 is to upgrade to a patched version of GitLab, as there are no effective workarounds available.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203