CVE-2023-2515 Privilege escalation to system admin via personal access tokens
Attackers with specific user management permissions can escalate privileges to system admin by creating personal access tokens.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-2515?
CVE-2023-2515 is a medium-severity vulnerability in Mattermost Mattermost Server, published on 12 May 2023. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
Mattermost fails to restrict a user with permissions to edit other users and to create personal access tokens from elevating their privileges to system admin
Weakness: CWE-863
Which versions are affected by CVE-2023-2515?
9 open source packages ship an affected version, including github.com/mattermost/mattermost-server/v6 and mattermost. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/mattermost/mattermost-server/v6 Go | All versions | 7.1.8 |
github.com/mattermost/mattermost-server/v6 Go | All versions | 7.1.8 |
github.com/mattermost/mattermost-server/v6 Go | From 7.2.0 | 7.7.4 |
github.com/mattermost/mattermost-server/v6 Go | From 7.2.0 | 7.7.4 |
github.com/mattermost/mattermost-server/v6 Go | From 7.8.0 | 7.8.3 |
github.com/mattermost/mattermost-server/v6 Go | From 7.8.0 | 7.8.3 |
3 more packages
github.com/mattermost/mattermost-server/v6 Go | From 7.9.0 | 7.9.2 |
github.com/mattermost/mattermost-server/v6 Go | From 7.9.0 | 7.9.2 |
mattermost Bitnami | All versions | 7.1.8, 7.7.4, 7.8.3, 7.9.2 |
Products include Mattermost Mattermost Server.
How do I fix CVE-2023-2515?
Upgrade github.com/mattermost/mattermost-server/v6 to a fixed version for your release line: 7.1.8, 7.7.4, 7.8.3 or 7.9.2.
Is CVE-2023-2515 being exploited?
There is no known exploitation of CVE-2023-2515 in the wild and no public exploit code.
Other vulnerabilities in Mattermost Mattermost Server
- CVE-2025-12419 Account takeover on OAuth/OpenID-enabled servers
- CVE-2025-12421 Account Takeover via Code Exchange Endpoint
- CVE-2025-4981 Path Traversal Leading to RCE by Any Authenticated Mattermost User
- CVE-2025-20051 Arbitrary file read via block duplication in Mattermost Boards
- CVE-2025-25279 Arbitrary file read in Mattermost Boards via import & export board archive
Sources
Also known as BIT-mattermost-2023-2515, GHSA-7g2v-2frm-rg94.