CVE-2025-5101
Improper Control of Generation of Code ('Code Injection') in GitLab
- State
- Published
- Severity
- 5.0 Medium
- Published
- Aug 27, 2025
- Updated
- Aug 27, 2025
- Reserved
- May 22, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 5.0 Medium | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N | GitLab |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
Affected Products
| Product | Versions |
|---|---|
GitLabGitLab |
|
References
- GitLab Issue #545165issue-trackingpermissions-required
- HackerOne Bug Bounty Report #3124199technical-descriptionexploitpermissions-required
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.