CVE-2024-4183: Mattermost fails to limit the number of active sessions
4.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.39502%
CWE
Published
4/26/2024
Updated
4/26/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/mattermost/mattermost-server | go | >= 9.6.0-rc1, <= 9.6.0 | 9.6.1 |
| github.com/mattermost/mattermost-server | go | >= 9.5.0, <= 9.5.2 | 9.5.3 |
| github.com/mattermost/mattermost-server | go | >= 9.4.0, <= 9.4.4 | 9.4.5 |
| github.com/mattermost/mattermost-server | go | >= 8.1.0, <= 8.1.11 | 8.1.12 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing session limit enforcement and rate-limiting. The patch adds 1) a maxSessionsLimit constant, 2) session revocation logic in limitNumberOfSessions, and 3) rate-limiting for the /sessions endpoint. The vulnerable functions are those responsible for session creation (CreateSession, newSession) and session retrieval (GetSessions) which lacked these protections. The commit diffs show these functions were modified to add limit checks, confirming their role in the vulnerability.