CVE-2023-3401
published medium CVSS 3.1 · 4.8Improper 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 < 16.0.8 · 16.1.0 to < 16.1.3 · 16.2.0 to < 16.2.2 · Other versions: unaffected | Affected | Not stated | GitLab |
Description
An issue has been discovered in GitLab affecting all versions before 16.0.8, all versions starting from 16.1 before 16.1.3, all versions starting from 16.2 before 16.2.2. The main branch of a repository with a specially designed name allows an attacker to create repositories with malicious code.
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
- 4.8 / 10
- Severity
- medium
- Provider
- GitLab · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/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 < 16.0.8 (affected · semver)16.1.0 to < 16.1.3 (affected · semver)16.2.0 to < 16.2.2 (affected · semver)Default: unaffected | GitLab · cna |
Weaknesses
1- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
2- GitLab Issue #416252 https://gitlab.com/gitlab-org/gitlab/-/issues/416252
- HackerOne Bug Bounty Report #2031845 https://hackerone.com/reports/2031845
Provider assertions
3GitLab · cna
Improper Control of Generation of Code ('Code Injection') in GitLab
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a3a896c747ae649ecd689f3acb5d950c690dccf82e93c25db7d45dd2d3b29f38
- Ingested
- 23 Sep 2026, 08:10:53 UTC
- Source record
- Official CVE record