title: Deactivated user can retain access using oauth2 api
description: Mattermost fails to check if an admin user account active after an oauth2 flow is started, allowing an attacker with admin privileges to retain persistent access to Mattermost by obtaining an oauth2 access token while the attacker's account is deactivated.
problem types: CWE-862 Missing Authorization
affected:
{
defaultStatus: unaffected
product: Mattermost
vendor: Mattermost
versions:
lessThanOrEqual: 7.1.9, status: affected, version: 0, versionType: semver
lessThanOrEqual: 7.8.4, status: affected, version: 0, versionType: semver
lessThanOrEqual: 7.9.3, status: affected, version: 0, versionType: semver
status: affected, version: 7.10.0
status: unaffected, version: 7.1.10
status: unaffected, version: 7.8.5
status: unaffected, version: 7.9.4
status: unaffected, version: 7.10.1
}
metrics:
cvssV3_1: [
attackComplexity: HIGH
attackVector: NETWORK
availabilityImpact: LOW
baseScore: 6.2
baseSeverity: MEDIUM
confidentialityImpact: HIGH
integrityImpact: HIGH
privilegesRequired: HIGH
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L
version: 3.1
]
format: CVSS
scenarios: GENERAL
solutions: Update Mattermost to version 7.1.10, 7.8.5, 7.9.4, 7.10.1 or higher.