CVE-2024-4198 json
Mattermost fails to fully validate role changes
published 2024-04-26 2 y ago modified 2026-06-17 4 mo ago also GHSA-5qx9-9ffj-5r8f , GO-2024-2794 , EUVD-2024-1107
- cvss
- 2.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 43%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/mattermost/mattermost-server 8.1.12, 8.1.12+incompatible, 9.5.3, 9.5.3+incompatible, 9.6.1, 9.6.1+incompatible
- Mattermost Mattermost 8.1.12, 9.5.3, 9.6.1, 9.7.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-4198 updated cvss 2.7
mattermost: fail to fully validate role changes which allows an attacker authenticated as team admin to demote users to guest
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/acm-grafana-rhel8 Red Hat Advanced Cluster Security 3 advanced-cluster-security/rhacs-docs-rhel8, advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-roxctl-rhel8, advanced-cluster-security/rhacs-scanner-rhel8, advanced-cluster-security/rhacs-rhel8-operator, advanced-cluster-security/rhacs-scanner-db-rhel8affected: no fix available “Fix deferred”
-
Red Hat OpenShift Container Platform 4 openshift4/ose-grafananot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.50% chance of exploitation in the next 30 days, higher than 43% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 2.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 2.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N |
| GitHub | 3.1 | 2.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/mattermost/mattermost-server | >=9.6.0-rc1, <9.6.1 >=9.5.0, <9.5.3 >=8.1.0, <8.1.12 >=8.1.0+incompatible, <8.1.12+incompatible >=9.5.0+incompatible, <9.5.3+incompatible >=9.6.0-rc1+incompatible, <9.6.1+incompatible |
9.6.1 9.5.3 8.1.12 8.1.12+incompatible 9.5.3+incompatible 9.6.1+incompatible |
Affected products
- Mattermost Mattermost
Classification
- Weakness
-
- CWE-284 Improper Access Control
References
-
github.com
/mattermost/mattermost/commit/3d6d8a7c1f7105558fe266a1b379859a4dba4e9b
web
-
github.com
/mattermost/mattermost/commit/408ce4a82bb55ce27801f7044d9b3b49e82c47ed
web
-
github.com
/mattermost/mattermost/commit/fba5b8e348feada9b21290369c3598ccd5c04424
web
-
mattermost.com
/security-updates
web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-4198
advisory
-
github.com
/mattermost/mattermost
package
-
github.com
/advisories/GHSA-5qx9-9ffj-5r8f
advisory
Sources
- CVE List CVE-2024-4198
- GitHub Advisory GHSA-5qx9-9ffj-5r8f
- NVD CVE-2024-4198
- OSV GO-2024-2794
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.