CVE-2023-5226
JSON

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 packageVersionsReported by
GitLab GitLabbefore 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.0CVE List, NVD
gitlab (Bitnami)before 16.4.3, from 16.5.0 before 16.5.3, from 16.6.0 before 16.6.1Bitnami Vulnerability Database

All scores

GitLab4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Bitnami Vulnerability Databasehigh 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/426400advisory, broken-link, issue-tracking, vendor-advisory
https://hackerone.com/reports/2173053advisory, broken-link, exploit, permissions-required, technical-description, third-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2023-5226web

Sources

SourceRecordLicence
CVE ListCVE-2023-5226 changed 2026-08-14CVE Terms of Use
NVDCVE-2023-5226 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GITLAB-2023-5226 changed 2026-09-08Apache-2.0