Unrated severityNVD Advisory· Published Aug 2, 2023· Updated Nov 20, 2025
Improper Control of Generation of Code ('Code Injection') in GitLab
CVE-2023-3401
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.
Affected products
3cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*range: 0
- (no CPE)range: >=0 <16.0.8 || >=16.1.0 <16.1.3 || >=16.2.0 <16.2.2
Patches
Vulnerability mechanics
References
2- hackerone.com/reports/2031845mitretechnical-descriptionexploitpermissions-required
- gitlab.com/gitlab-org/gitlab/-/issues/416252mitreissue-tracking
News mentions
2- GitLab Security Release: 16.6.1, 16.5.3, 16.4.3GitLab Security Releases · Nov 30, 2023
- GitLab Security Release: 16.2.2, 16.1.3, and 16.0.8GitLab Security Releases · Aug 1, 2023