CVE-2023-2515 Privilege escalation to system admin via personal access tokens

Medium 4.7 Published Updated

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.

PackageAffectedFixed in
github.com/mattermost/mattermost-server/v6 GoAll versions7.1.8
github.com/mattermost/mattermost-server/v6 GoAll versions7.1.8
github.com/mattermost/mattermost-server/v6 GoFrom 7.2.07.7.4
github.com/mattermost/mattermost-server/v6 GoFrom 7.2.07.7.4
github.com/mattermost/mattermost-server/v6 GoFrom 7.8.07.8.3
github.com/mattermost/mattermost-server/v6 GoFrom 7.8.07.8.3
3 more packages
github.com/mattermost/mattermost-server/v6 GoFrom 7.9.07.9.2
github.com/mattermost/mattermost-server/v6 GoFrom 7.9.07.9.2
mattermost BitnamiAll versions7.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.

All Mattermost Mattermost Server vulnerabilities

Sources

Also known as BIT-mattermost-2023-2515, GHSA-7g2v-2frm-rg94.

Is CVE-2023-2515 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free