5.0medium
Improper Control of Generation of Code ('Code Injection') in GitLab
- Severity
- 5.0medium CVSS:3.1 by GitLab
- Exploit likelihood
- 0.21% (higher than 7% of CVEs)
- Published
- Last changed
- Assigned by
- GitLab
- Also known as
- BIT-GITLAB-2025-5101
Description
An issue has been discovered in GitLab CE/EE affecting all versions before 18.1.5, 18.2 before 18.2.5, and 18.3 before 18.3.1 that under certain conditions could have allowed an authenticated attacker to distribute malicious code that appears harmless in the web interface by taking advantage of ambiguity between branches and tags during repository imports.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| GitLab GitLab | before 18.1.5, from 18.2 before 18.2.5, from 18.3 before 18.3.1, from 18.2.0 before 18.2.5, 18.3.0 | CVE List, NVD |
| gitlab (Bitnami) | before 18.1.5, from 18.2.0 before 18.2.5, from 18.3.0 before 18.3.1 | Bitnami Vulnerability Database |
All scores
| GitLab | 5.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
An issue has been discovered in GitLab CE/EE affecting all versions before 18.1.5, 18.2 before 18.2.5, and 18.3 before 18.3.1 that under certain conditions could have allowed an authenticated attacker to distribute malicious code that appears harmless in the web interface by taking advantage of ambiguity between branches and tags during repository imports.
NVD (es)
Se ha descubierto un problema en GitLab CE/EE que afecta a todas las versiones anteriores a la 18.1.5, 18.2 anteriores a la 18.2.5 y 18.3 anteriores a la 18.3.1 que, en determinadas condiciones, podría haber permitido a un atacante autenticado distribuir código malicioso que parece inofensivo en la interfaz web aprovechando la ambigüedad entre ramas y etiquetas durante las importaciones del repositorio.
References
| https://gitlab.com/gitlab-org/gitlab/-/issues/545165 | broken-link, issue-tracking, permissions-required, web | |
| https://hackerone.com/reports/3124199 | exploit, permissions-required, technical-description, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-5101 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-5101 changed 2025-08-27 | CVE Terms of Use |
| NVD | CVE-2025-5101 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GITLAB-2025-5101 changed 2025-08-30 | Apache-2.0 |