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

- Severity: Medium 4.8 (CVSS:3.1, scored by GitLab) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 46% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-01T07:01:43.131Z
- Modified: 2026-09-08T08:47:43.535Z
- Also known as: BIT-GITLAB-2023-5226
- Weaknesses: CWE-94
- Assigned by: GitLab

## Description

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.

(As written by CVE List.)

## Affected

- GitLab GitLab: before 16.4.3; from 16.5 before 16.5.3; from 16.6 before 16.6.1; from 16.5.0 before 16.5.3; 16.6.0
- gitlab (Bitnami): before 16.4.3; from 16.5.0 before 16.5.3; from 16.6.0 before 16.6.1

## Every score

- GitLab: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://hackerone.com/reports/2173053> (exploit, advisory, broken-link, permissions-required, technical-description, third-party-advisory)
- <https://gitlab.com/gitlab-org/gitlab/-/issues/426400> (advisory, broken-link, issue-tracking, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-5226> (web)

## Sources

- CVE List: [CVE-2023-5226](https://www.cve.org/CVERecord?id=CVE-2023-5226), CVE Terms of Use, modified 2026-08-14
- NVD: [CVE-2023-5226](https://nvd.nist.gov/vuln/detail/CVE-2023-5226), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GITLAB-2023-5226](https://osv.dev/vulnerability/BIT-GITLAB-2023-5226), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-5226 · Whole record: https://cve.day/CVE-2023-5226.json · Rebuilt by cve.day 2026-11-25T22:58:30.858Z
