Unrated severityNVD Advisory· Published Dec 1, 2023· Updated Apr 23, 2026
Improper Control of Generation of Code ('Code Injection') in GitLab
CVE-2023-5226
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
3cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*range: 0
- (no CPE)range: <16.4.3, >=16.5 <16.5.3, >=16.6 <16.6.1
Patches
Vulnerability mechanics
References
2- hackerone.com/reports/2173053mitretechnical-descriptionexploitpermissions-required
- gitlab.com/gitlab-org/gitlab/-/issues/426400mitreissue-trackingpermissions-required
News mentions
1- GitLab Security Release: 16.6.1, 16.5.3, 16.4.3GitLab Security Releases · Nov 30, 2023