Mattermost Fails to Validate Team Invite Permissions

Description

Mattermost versions 10.6.x <= 10.6.1, 10.5.x <= 10.5.2, 10.4.x <= 10.4.4, 9.11.x <= 9.11.11 fail to check the correct permissions which allows authenticated users who only have permission to invite non-guest users to a team to add guest users to that team via the API to add a single user to a team.

Basic information

Type
reviewed
Severity
medium
Advisory on GitHub
Open advisory ↗
Repository advisory
Source code
Browse source ↗
Published (advisory)
2025-05-15 12:30:27 UTC
Updated
2025-05-17 14:02:06 UTC
GitHub reviewed
2025-05-17 14:02:03 UTC
NVD published
2025-05-15

EPSS Score

Score Percentile
0.19% 40.50%

CVSS Scores

Base score Version Severity Vector
4.3 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.

Identifiers

CWEs

CWE id Name
CWE-863 Incorrect Authorization

Affected packages (5)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
go github.com/mattermost/mattermost/server/v8 >= 10.6.0, <= 10.6.1 10.6.2
go github.com/mattermost/mattermost/server/v8 >= 10.5.0, <= 10.5.2 10.5.3
go github.com/mattermost/mattermost/server/v8 >= 10.4.0, <= 10.4.4 10.4.5
go github.com/mattermost/mattermost/server/v8 >= 9.11.0, <= 9.11.11 9.11.12
go github.com/mattermost/mattermost/server/v8 < 8.0.0-20250415054241-76ab3867b785 8.0.0-20250415054241-76ab3867b785

References

cvelogic Threat Intelligence