title: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab
description: An issue has been discovered in GitLab CE/EE affecting all versions from 16.0 prior to 16.6.6, 16.7 prior to 16.7.4, and 16.8 prior to 16.8.1 which allows an authenticated user to write files to arbitrary locations on the GitLab server while creating a workspace.
problem types: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
affected:
{
vendor: GitLab
product: GitLab
repo: git://git@gitlab.com:gitlab-org/gitlab.git
versions:
version: 16.0, status: affected, lessThan: 16.5.8, versionType: semver
version: 16.6, status: affected, lessThan: 16.6.6, versionType: semver
version: 16.7, status: affected, lessThan: 16.7.4, versionType: semver
version: 16.8, status: affected, lessThan: 16.8.1, versionType: semver
defaultStatus: unaffected
}
metrics:
format: CVSS
scenarios: GENERAL
cvssV3_1: [
version: 3.1
vectorString: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: LOW
userInteraction: NONE
scope: CHANGED
confidentialityImpact: HIGH
integrityImpact: HIGH
availabilityImpact: HIGH
baseScore: 9.9
baseSeverity: CRITICAL
]
solutions: Upgrade to versions 16.8.1, 16.7.4, 16.6.6, 16.5.8 or above.