CVE-2025-5101
published medium CVSS 3.1 · 5.0Improper Control of Generation of Code ('Code Injection') in GitLab
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GitLab | — | GitLab0 to < 18.1.5 · 18.2 to < 18.2.5 · 18.3 to < 18.3.1 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.0 / 10
- Severity
- medium
- Provider
- GitLab · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GitLab | GitLab | 0 to < 18.1.5 (affected · semver)18.2 to < 18.2.5 (affected · semver)18.3 to < 18.3.1 (affected · semver)Default: unaffected | GitLab · cna |
Weaknesses
1- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
2- GitLab Issue #545165 https://gitlab.com/gitlab-org/gitlab/-/issues/545165
- HackerOne Bug Bounty Report #3124199 https://hackerone.com/reports/3124199
Provider assertions
2GitLab · cna
Improper Control of Generation of Code ('Code Injection') in GitLab
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6928a92b1c75eddf663a7c694ebf34bcf09889a53a46941548e0171536ee433b
- Ingested
- 23 Sep 2026, 08:54:33 UTC
- Source record
- Official CVE record