CVE-2023-5226: Improper Control of Generation of Code ('Code Injection') in GitLab

Published Dec 1, 2023
·
Updated

An issue has been discovered in GitLab affecting all versions before 16.4.3, all versions starting from 16.5 before 16.5.3, all versions starting from 16.6 before 16.6.1. Under certain circumstances, a malicious actor bypass prohibited branch checks using a specially crafted branch name to manipulate repository content in the UI.

Affected Software

6 affected components
GitLab GitLab<16.4.3
GitLab GitLab<16.4.3
GitLab GitLab>=16.5.0<16.5.3
GitLab GitLab>=16.5.0<16.5.3
GitLab GitLab=16.6.0
GitLab GitLab=16.6.0

Remediation

Information

Upgrade to versions 16.4.3, 16.5.3, 16.6.1 or above.

Event History

Dec 1, 2023
CVE Published
07:01 AM
Data Sourced
07:01 AM
RemedyDescriptionSeverityWeakness
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 CVE-2023-5226?

CVE-2023-5226 is a vulnerability in GitLab that allows a malicious actor to bypass branch checks and execute code injection.

2

What versions of GitLab are affected by CVE-2023-5226?

All versions before 16.4.3, versions starting from 16.5 before 16.5.3, and versions starting from 16.6 before 16.6.1 are affected by CVE-2023-5226.

3

How can a malicious actor exploit CVE-2023-5226?

A malicious actor can bypass prohibited branch checks using a specially crafted branch name to manipulate code execution.

4

What is the severity of CVE-2023-5226?

CVE-2023-5226 has a severity rating of 7.5 (High).

5

Are there any references related to CVE-2023-5226?

Yes, you can find more information about CVE-2023-5226 at the following links: [GitLab issue](https://gitlab.com/gitlab-org/gitlab/-/issues/426400) and [HackerOne report](https://hackerone.com/reports/2173053).

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