CVE-2025-1540: Incorrect Authorization in GitLab

Published Feb 12, 2025
·
Updated

An issue has been discovered in GitLab CE/EE for Self-Managed and Dedicated instances affecting all versions from 17.5 prior to 17.6.5, 17.7 prior to 17.7.4, and 17.8 prior to 17.8.2. It was possible for a user added as an External to read and clone internal projects under certain circumstances."

Other sources

An issue has been discovered in GitLab CE/EE for Self-Managed and Dedicated instances affecting all versions from 17.5 prior to 17.6.5, 17.7 prior to 17.7.4, and 17.8 prior to 17.8.2. It was possible for a user manually designated as an External without configuring them as such in SAML response to lose that designation, and to read and clone internal projects under certain circumstances. After upgrading to a patched version, please review and re-designate any externals users. This is a low severity issue (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N, 3.1). It is now mitigated in the latest release and is assigned CVE-2025-1540.

GitLab

Affected Software

8 affected componentsFixes available
GitLab GitLab CE/EE>=17.5, <17.6.5, >=17.7, <17.7.4, >=17.8, <17.8.2
GitLab GitLab>=17.5.0<17.6.5
GitLab GitLab>=17.5.0<17.6.5
GitLab GitLab>=17.7.0<17.7.4
GitLab GitLab>=17.7.0<17.7.4
GitLab GitLab>=17.8.0<17.8.2
GitLab GitLab>=17.8.0<17.8.2
GitLab GitLab>=17.5<17.6.5, >=17.7<17.7.4, >=17.8<17.8.2
17.6.517.7.417.8.2

Remediation

Information

Upgrade to version 17.8.2, 17.7.4 or 17.6.5.

Event History

Mar 6, 2025
CVE Published
via MITRE·08:31 AM
Data Sourced
via MITRE·08:31 AM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·09:15 AM
DescriptionSeverityWeaknessAffected Software
Apr 22, 2026
Data Sourced
via GitLab·08:55 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-1540?

CVE-2025-1540 is considered a critical vulnerability due to its potential to expose internal projects to unauthorized users.

2

How do I fix CVE-2025-1540?

To fix CVE-2025-1540, upgrade GitLab CE/EE to version 17.6.5, 17.7.4, or 17.8.2 or later.

3

Who is affected by CVE-2025-1540?

CVE-2025-1540 affects all instances of GitLab CE/EE versions from 17.5 prior to 17.6.5, 17.7 prior to 17.7.4, and 17.8 prior to 17.8.2.

4

What types of projects are vulnerable due to CVE-2025-1540?

CVE-2025-1540 allows external users to read and clone internal projects in specific scenarios.

5

Is there a workaround for CVE-2025-1540?

No official workaround is recommended; the best course of action is to update GitLab to a patched version.

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