title: Improper Control of Generation of Code ('Code Injection') in 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.
problem types: CWE-94: Improper Control of Generation of Code ('Code Injection')
affected:
{
vendor: GitLab
product: GitLab
repo: git://git@gitlab.com:gitlab-org/gitlab.git
versions:
version: 0, status: affected, lessThan: 16.4.3, versionType: semver
version: 16.5, status: affected, lessThan: 16.5.3, versionType: semver
version: 16.6, status: affected, lessThan: 16.6.1, versionType: semver
defaultStatus: unaffected
}
metrics:
format: CVSS
scenarios: GENERAL
cvssV3_1: [
version: 3.1
vectorString: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
attackVector: NETWORK
attackComplexity: HIGH
privilegesRequired: LOW
userInteraction: REQUIRED
scope: UNCHANGED
confidentialityImpact: NONE
integrityImpact: HIGH
availabilityImpact: NONE
baseScore: 4.8
baseSeverity: MEDIUM
]
solutions: Upgrade to versions 16.4.3, 16.5.3, 16.6.1 or above.