# CVE-2024-4198: Mattermost fails to fully validate role changes

- Severity: Low 2.7 (CVSS:3.1, scored by Mattermost) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2024-04-26T08:26:11.493Z
- Modified: 2026-06-17T08:01:18.843Z
- Also known as: GHSA-5qx9-9ffj-5r8f, GO-2024-2794
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Mattermost

## Description

Mattermost versions 9.6.0, 9.5.x before 9.5.3, and 8.1.x before 8.1.12 fail to fully validate role changes which allows an attacker authenticated as team admin to demote users to guest via crafted HTTP requests.

(As written by CVE List.)

## Affected

- Mattermost Mattermost: 9.6.0; from 9.5.0 up to 9.5.2; from 8.1.0 up to 8.1.11 (not affected: 9.7.0; 9.6.1; 9.5.3; 8.1.12)
- github.com/mattermost/mattermost-server (Go): from 9.6.0-rc1 before 9.6.1; from 9.5.0 before 9.5.3; from 8.1.0 before 8.1.12; from 8.1.0+incompatible before 8.1.12+incompatible; from 9.5.0+incompatible before 9.5.3+incompatible; from 9.6.0-rc1+incompatible before 9.6.1+incompatible
- mattermost mattermost_server: from 8.1.0 before 8.1.12; from 9.5.0 before 9.5.3; 9.6.0

## Every score

- Mattermost: CVSS:3.1 2.7 Low `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 2.7 Low `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 2.7 Low `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://mattermost.com/security-updates> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-4198> (advisory)
- <https://github.com/mattermost/mattermost/commit/3d6d8a7c1f7105558fe266a1b379859a4dba4e9b> (web)
- <https://github.com/mattermost/mattermost/commit/408ce4a82bb55ce27801f7044d9b3b49e82c47ed> (web)
- <https://github.com/mattermost/mattermost/commit/fba5b8e348feada9b21290369c3598ccd5c04424> (web)
- <https://github.com/mattermost/mattermost> (package)
- <https://github.com/advisories/GHSA-5qx9-9ffj-5r8f> (advisory)

## Sources

- CVE List: [CVE-2024-4198](https://www.cve.org/CVERecord?id=CVE-2024-4198), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-5qx9-9ffj-5r8f](https://github.com/advisories/GHSA-5qx9-9ffj-5r8f), CC-BY-4.0, modified 2024-06-05
- Go Vulnerability Database: [GO-2024-2794](https://pkg.go.dev/vuln/GO-2024-2794), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-4198](https://nvd.nist.gov/vuln/detail/CVE-2024-4198), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-4198 · Whole record: https://cve.day/CVE-2024-4198.json · Rebuilt by cve.day 2026-11-25T22:58:39.629Z
