CVE-2025-5101 Improper Control of Generation of Code ('Code Injection') in GitLab
MediumCVSS 5.0
EPSS 0.14%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| gitlab | < 18.1.5; = 18.3.0; >= 18.2, < 18.2.5; >= 18.2.0, < 18.2.5 +1 more | 18.1.5, 18.2.5, 18.3.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gitlab | < 18.1.5 | 18.1.5 |
| gitlab | >= 18.2, < 18.2.5 | 18.2.5 |
| gitlab | >= 18.3, < 18.3.1 | 18.3.1 |
| gitlab | >= 18.2.0, < 18.2.5 | 18.2.5 |
| gitlab | = 18.3.0 | No fix listed |
References
- GitLab Issue #545165 broken-link issue-tracking permissions-required
- HackerOne Bug Bounty Report #3124199 exploit permissions-required technical-description
- GitLab Patch Release: 18.3.1, 18.2.5, 18.1.5 vendor-advisory