CVE-2024-29221
JSON

4.7medium

Invite ID available to team admins even without the "Add Members" permission

Severity
4.7medium CVSS:3.1 by Mattermost
Exploit likelihood
0.33% (higher than 28% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Mattermost
Also known as
GHSA-w67v-ph4x-f48qBIT-MATTERMOST-2024-29221GO-2024-2706

Description

Improper Access Control in Mattermost Server versions 9.5.x before 9.5.2, 9.4.x before 9.4.4, 9.3.x before 9.3.3, 8.1.x before 8.1.11 lacked proper access control in the `/api/v4/users/me/teams` endpoint allowing a team admin to get the invite ID of their team, thus allowing them to invite users, even if the "Add Members" permission was explicitly removed from team admins.

Affected

Product or packageVersionsReported by
Mattermost Mattermostfrom 9.5.0 up to 9.5.1, from 9.4.0 up to 9.4.3, from 9.3.0 up to 9.3.2, from 8.1.0 up to 8.1.10
Not affected: 9.6.0, 9.5.2, 9.4.4, 9.3.3, 8.1.11
CVE List
github.com/mattermost/mattermost/server/v8 (Go)from 8.1.0 before 8.1.11, from 9.5.0 before 9.5.2, from 9.4.0 before 9.4.4, from 9.3.0 before 9.3.3, all versionsGitHub Advisory Database, Go Vulnerability Database
github.com/mattermost/mattermost-server (Go)from 9.3.0+incompatible before 9.3.3+incompatible, from 9.4.0+incompatible before 9.4.4+incompatible, from 9.5.0+incompatible before 9.5.2+incompatibleGo Vulnerability Database
github.com/mattermost/mattermost-server/v5 (Go)all versionsGo Vulnerability Database
github.com/mattermost/mattermost-server/v6 (Go)all versionsGo Vulnerability Database
mattermost mattermost_serverfrom 8.1.0 before 8.1.11, from 9.3.0 before 9.3.3, from 9.4.0 before 9.4.4, from 9.5.0 before 9.5.2NVD
mattermost (Bitnami)from 8.1.0 before 8.1.11, from 9.3.0 before 9.3.3, from 9.4.0 before 9.4.4, from 9.5.0 before 9.5.2Bitnami Vulnerability Database

All scores

Mattermost4.7medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
GitHub4.7medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
NVD3.8low CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
Bitnami Vulnerability Databaselow rating

Classification

CWE-284

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Improper Access Control in Mattermost Server versions 9.5.x before 9.5.2, 9.4.x before 9.4.4, 9.3.x before 9.3.3, 8.1.x before 8.1.11 lacked proper access control in the `/api/v4/users/me/teams` endpoint allowing a team admin to get the invite ID of their team, thus allowing them to invite users, even if the "Add Members" permission was explicitly removed from team admins.

Go Vulnerability Database

Mattermost Server Improper Access Control in github.com/mattermost/mattermost-server.

NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.

(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)

The additional affected modules and versions are: github.com/mattermost/mattermost/server/v8 from v8.1.0 before v8.1.11.

NVD (es)

Control de acceso inadecuado en las versiones de Mattermost Server 9.5.x anteriores a 9.5.2, 9.4.x anteriores a 9.4.4, 9.3.x anteriores a 9.3.3, 8.1.x anteriores a 8.1.11 carecían de control de acceso adecuado en el endpoint `/api/v4/users/me/teams` que permite a un administrador de equipo obtener el ID de invitación de su equipo, lo que les permite invitar a usuarios, incluso si el permiso "Agregar miembros" se eliminó explícitamente de los administradores de equipo.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-29221 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-w67v-ph4x-f48q changed 2024-12-16CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2706 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-29221 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-MATTERMOST-2024-29221 changed 2025-04-03Apache-2.0