CVE-2024-4024: GitLab account takeover, under certain conditions, when using Bitbucket as an OAuth provider

Published Apr 24, 2024
·
Updated

An issue has been discovered in GitLab CE/EE affecting all versions starting from 7.8 before 16.9.6, all versions starting from 16.10 before 16.10.4, all versions starting from 16.11 before 16.11.1. Under certain conditions, an attacker with their Bitbucket account credentials may be able to take over a GitLab account linked to another user's Bitbucket account, if Bitbucket is used as an OAuth 2.0 provider on GitLab.

Other sources

An issue has been discovered in GitLab CE/EE affecting all versions starting from 7.8 before 16.9.6, all versions starting from 16.10 before 16.10.4, all versions starting from 16.11 before 16.11.1. Under certain conditions, an attacker with their Bitbucket account credentials may be able to take over a GitLab account linked to another user’s Bitbucket account, if Bitbucket is used as an OAuth 2.0 provider on GitLab. This is a high severity issue (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N, 7.3). It is now mitigated in the latest release and is assigned CVE-2024-4024.

GitLab

Affected Software

7 affected componentsFixes available
GitLab GitLab>=7.8.0<16.9.6
GitLab GitLab>=7.8.0<16.9.6
GitLab GitLab>=16.10.0<16.10.4
GitLab GitLab>=16.10.0<16.10.4
GitLab GitLab=16.11.0
GitLab GitLab=16.11.0
GitLab GitLab c>=7.8<16.9.6, >=16.10<16.10.4, >=16.11<16.11.1
16.9.616.10.416.11.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.9.6Fixed in 16.10.4Fixed in 16.11.1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.9.6
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.10.4
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.11.1
  5. Compensating control

    If you cannot upgrade immediately, ensure Bitbucket is not used as an OAuth 2.0 provider on GitLab (to prevent account takeover via linked Bitbucket identities), until fixed versions (16.9.6, 16.10.4, or 16.11.1 or above) are deployed.

Event History

Apr 25, 2024
CVE Published
via MITRE·01:30 PM
Data Sourced
via MITRE·01:30 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
DescriptionSeverityWeaknessAffected Software
Apr 22, 2026
Data Sourced
via GitLab·08:52 AM
DescriptionSeverityAffected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-4024?

CVE-2024-4024 has been classified as a medium severity vulnerability due to the potential for unauthorized access under certain conditions.

2

How do I fix CVE-2024-4024?

To fix CVE-2024-4024, upgrade your GitLab instance to version 16.9.6 or later, or to 16.10.4 or later, depending on your current version.

3

Which versions of GitLab are affected by CVE-2024-4024?

CVE-2024-4024 affects GitLab versions from 7.8 to 16.9.6, from 16.10 to 16.10.4, and specifically version 16.11.0.

4

Can an attacker exploit CVE-2024-4024 without credentials?

No, an attacker would need to have valid Bitbucket account credentials to exploit CVE-2024-4024.

5

What components of GitLab are impacted by CVE-2024-4024?

CVE-2024-4024 impacts both GitLab Community Edition and Enterprise Edition.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203