title: Improper Control of Generation of Code ('Code Injection') in GitLab
description: An issue has been discovered in GitLab CE/EE affecting all versions from 16.3 before 16.4.4, all versions starting from 16.5 before 16.5.4, all versions starting from 16.6 before 16.6.2. File integrity may be compromised when specific HTML encoding is used for file names leading for incorrect representation 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: 16.3, status: affected, lessThan: 16.4.4, versionType: semver
version: 16.5, status: affected, lessThan: 16.5.4, versionType: semver
version: 16.6, status: affected, lessThan: 16.6.2, 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.6.2, 16.5.4, 16.4.4 or above.