# CVE-2025-5101: Improper Control of Generation of Code ('Code Injection') in GitLab

- Severity: Medium 5.0 (CVSS:3.1, scored by GitLab) `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 6% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-08-27T19:33:36.040Z
- Modified: 2026-06-17T09:47:11.977Z
- Also known as: BIT-GITLAB-2025-5101
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitLab

## 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.

(As written by CVE List.)

## Affected

- 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
- gitlab (Bitnami): before 18.1.5; from 18.2.0 before 18.2.5; from 18.3.0 before 18.3.1

## Every score

- GitLab: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://hackerone.com/reports/3124199> (exploit, permissions-required, technical-description, web)
- <https://gitlab.com/gitlab-org/gitlab/-/issues/545165> (broken-link, issue-tracking, permissions-required, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-5101> (web)

## Sources

- CVE List: [CVE-2025-5101](https://www.cve.org/CVERecord?id=CVE-2025-5101), CVE Terms of Use, modified 2025-08-27
- NVD: [CVE-2025-5101](https://nvd.nist.gov/vuln/detail/CVE-2025-5101), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GITLAB-2025-5101](https://osv.dev/vulnerability/BIT-GITLAB-2025-5101), Apache-2.0, modified 2025-08-30

---

Page: https://cve.day/CVE-2025-5101 · Whole record: https://cve.day/CVE-2025-5101.json · Rebuilt by cve.day 2026-11-25T22:59:03.773Z
