CVE-2025-5101
JSON

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 packageVersionsReported by
GitLab GitLabbefore 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.0CVE List, NVD
gitlab (Bitnami)before 18.1.5, from 18.2.0 before 18.2.5, from 18.3.0 before 18.3.1Bitnami Vulnerability Database

All scores

GitLab5.0medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-94

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/545165broken-link, issue-tracking, permissions-required, web
https://hackerone.com/reports/3124199exploit, permissions-required, technical-description, web
https://nvd.nist.gov/vuln/detail/CVE-2025-5101web

Sources

SourceRecordLicence
CVE ListCVE-2025-5101 changed 2025-08-27CVE Terms of Use
NVDCVE-2025-5101 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GITLAB-2025-5101 changed 2025-08-30Apache-2.0