CVE-2023-5226
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.4.3 · 16.5 to < 16.5.3 · 16.6 to < 16.6.1 · Other versions: unaffected | Affected | Not stated | GitLab |
Description
An issue has been discovered in GitLab affecting all versions before 16.4.3, all versions starting from 16.5 before 16.5.3, all versions starting from 16.6 before 16.6.1. Under certain circumstances, a malicious actor bypass prohibited branch checks using a specially crafted branch name to manipulate repository content in the UI.
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.4.3 (affected · semver)16.5 to < 16.5.3 (affected · semver)16.6 to < 16.6.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 #426400 https://gitlab.com/gitlab-org/gitlab/-/issues/426400
- HackerOne Bug Bounty Report #2173053 https://hackerone.com/reports/2173053
Provider assertions
2GitLab · cna
Improper Control of Generation of Code ('Code Injection') in GitLab
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4695a005a3936569c2d3c2a9900639bcd62433e6125578bff5a4756e07668f4f
- Ingested
- 23 Sep 2026, 08:15:19 UTC
- Source record
- Official CVE record