CVE-2023-6840: Project maintainers can bypass group’s scan result policy block_branch_modification setting

Published Feb 7, 2024
·
Updated

An issue has been discovered in GitLab EE affecting all versions from 16.4 prior to 16.6.7, 16.7 prior to 16.7.5, and 16.8 prior to 16.8.2 which allows a maintainer to change the name of a protected branch that bypasses the security policy added to block MR.

Affected Software

4 affected componentsFixes available
GitLab GitLab>=16.4.0<16.6.7
GitLab GitLab>=16.7.0<16.7.5
GitLab GitLab>=16.8.0<16.8.2
GitLab GitLab EE>=16.4<16.6.7, >=16.7<16.7.5, >=16.8<16.8.2
16.6.716.7.516.8.2

Remediation

Information

Upgrade to versions 16.8.2, 16.7.5, 16.6.7 or above.

Event History

Feb 7, 2024
CVE Published
via MITRE·10:02 PM
Data Sourced
via MITRE·10:02 PM
RemedyDescriptionSeverityWeakness
Apr 22, 2026
Data Sourced
via GitLab·08:52 AM
DescriptionSeverityAffected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2023-6840?

CVE-2023-6840 is classified as a medium severity vulnerability.

2

What versions of GitLab EE are affected by CVE-2023-6840?

CVE-2023-6840 affects GitLab EE versions from 16.4 prior to 16.6.7, 16.7 prior to 16.7.5, and 16.8 prior to 16.8.2.

3

How do I fix CVE-2023-6840?

To fix CVE-2023-6840, upgrade to GitLab EE versions 16.6.7, 16.7.5, or 16.8.2 or newer.

4

What is the impact of CVE-2023-6840?

CVE-2023-6840 allows a maintainer to change the name of a protected branch, bypassing existing security policies.

5

Who can exploit CVE-2023-6840?

CVE-2023-6840 can be exploited by any maintainer with access to the protected branch in the affected GitLab EE versions.

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