CVE-2022-1385: Improper Control of a Resource Through its Lifetime in Mattermost
4.6
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.42783%
CWE
Published
4/20/2022
Updated
1/27/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/mattermost/mattermost-server/v6 | go | < 6.5.0 | 6.5.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper invalidation of pending invitations when using system console actions. The primary suspect is the system console's invitation revocation handler (likely in API layer) that doesn't properly interface with the token store to remove pending invitations. The medium confidence in DeleteToken stems from the assumption that token cleanup might be context-dependent and system console operations might bypass normal cleanup workflows. The pattern matches CWE-664 as resources (invitation tokens) aren't properly controlled through their lifecycle, and CWE-668 as valid tokens remain exposed to unintended users.