{"id":"CVE-2025-5101","aliases":["CVE-2025-5101","BIT-GITLAB-2025-5101"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Control of Generation of Code ('Code Injection') in GitLab","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-08-27T19:33:36.040Z","modified":"2026-06-17T09:47:11.977Z","severity":{"scorer":"GitLab","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"GitLab","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"18.1.5","status":"affected"},{"type":"semver","introduced":"18.2","fixed":"18.2.5","status":"affected"},{"type":"semver","introduced":"18.3","fixed":"18.3.1","status":"affected"}],"vendor":"GitLab","product":"GitLab","cpe":"cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*","repo":"git://git@gitlab.com:gitlab-org/gitlab.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"18.1.5"},{"status":"affected","fixed":"18.1.5"},{"status":"affected","introduced":"18.2.0","fixed":"18.2.5"},{"status":"affected","introduced":"18.2.0","fixed":"18.2.5"},{"status":"affected","version":"18.3.0"},{"status":"affected","version":"18.3.0"}],"vendor":"gitlab","product":"gitlab","cpe":"cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"18.1.5"},{"type":"semver","introduced":"18.2.0","status":"affected","fixed":"18.2.5"},{"type":"semver","introduced":"18.3.0","status":"affected","fixed":"18.3.1"}],"ecosystem":"Bitnami","package":"gitlab","purl":"pkg:bitnami/gitlab","source":"bitnami"}],"references":[{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/545165","tags":["broken-link","issue-tracking","permissions-required","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://hackerone.com/reports/3124199","tags":["exploit","permissions-required","technical-description","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-5101","tags":["web"],"sources":["bitnami"]}],"credits":["Thanks [st4nly0n](https://hackerone.com/st4nly0n) for reporting this vulnerability through our HackerOne bug bounty program"],"assigner":"GitLab","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-08-27T19:53:27.843Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-5101","url":"https://www.cve.org/CVERecord?id=CVE-2025-5101","licence":"CVE Terms of Use","modified":"2025-08-27T19:53:36.682Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-5101","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-5101","licence":"Public domain","modified":"2026-06-17T09:47:11.977Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GITLAB-2025-5101","url":"https://osv.dev/vulnerability/BIT-GITLAB-2025-5101","licence":"Apache-2.0","modified":"2025-08-30T09:57:18.176Z"}],"updatedAt":"2026-11-25T22:59:03.773Z","epss":{"score":0.00213,"percentile":0.0661,"date":"2026-11-30T12:00:22.000Z"}}