title: Time-of-check Time-of-use (TOCTOU) Race Condition in GitLab
description: An issue has been discovered in GitLab CE/EE affecting all versions starting from 15.9 before 16.0.8, all versions starting from 16.1 before 16.1.3, all versions starting from 16.2 before 16.2.2. It was possible to takeover GitLab Pages with unique domain URLs if the random string added was known.
problem types: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
affected:
{
vendor: GitLab
product: GitLab
repo: git://git@gitlab.com:gitlab-org/gitlab.git
versions:
version: 15.9, status: affected, lessThan: 16.0.8, versionType: semver
version: 16.1, status: affected, lessThan: 16.1.3, versionType: semver
version: 16.2, status: affected, lessThan: 16.2.2, versionType: semver
defaultStatus: unaffected
}
metrics:
format: CVSS
scenarios: GENERAL
cvssV3_1: [
version: 3.1
vectorString: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: LOW
integrityImpact: NONE
availabilityImpact: NONE
baseScore: 5.3
baseSeverity: MEDIUM
]
solutions: Upgrade to versions 16.2.2, 16.1.3, 16.0.8 or above.