4.8medium
Improper Control of Generation of Code ('Code Injection') in GitLab
- Severity
- 4.8medium CVSS:3.1 by GitLab
- Exploit likelihood
- 0.65% (higher than 46% of CVEs)
- Published
- Last changed
- Assigned by
- GitLab
- Also known as
- BIT-GITLAB-2023-5226
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List, NVD |
| gitlab (Bitnami) | before 16.4.3, from 16.5.0 before 16.5.3, from 16.6.0 before 16.6.1 | Bitnami Vulnerability Database |
All scores
| GitLab | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
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.
NVD (es)
Se ha descubierto un problema en GitLab que afecta a todas las versiones anteriores a 16.4.3, todas las versiones a partir de 16.5 anteriores a 16.5.3, todas las versiones a partir de 16.6 anteriores a 16.6.1. En determinadas circunstancias, un actor malintencionado elude las comprobaciones de sucursales prohibidas utilizando un nombre de sucursal especialmente manipulado para manipular el contenido del repositorio en la interfaz de usuario.
References
| https://gitlab.com/gitlab-org/gitlab/-/issues/426400 | advisory, broken-link, issue-tracking, vendor-advisory | |
| https://hackerone.com/reports/2173053 | advisory, broken-link, exploit, permissions-required, technical-description, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-5226 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-5226 changed 2026-08-14 | CVE Terms of Use |
| NVD | CVE-2023-5226 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GITLAB-2023-5226 changed 2026-09-08 | Apache-2.0 |