MEDIUM4.7
GHSA-322v-vh2g-qvpv
Mattermost Fails to Restrict Certain Operations on System Admins
Quick fix
GHSA-322v-vh2g-qvpv — github.com/mattermost/mattermost-server: upgrade to the fixed version with the command below.
go get github.com/mattermost/mattermost-server@v10.5.2Details
Mattermost versions 10.5.x <= 10.5.1, 10.4.x <= 10.4.3, 9.11.x <= 9.11.9 fail to restrict certain operations on system admins to only other system admins, which allows delegated granular administration users with the "Edit Other Users" permission to perform unauthorized modifications to system administrators via improper permission validation.
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/mattermost/mattermost-server
Introduced in:
10.5.0Fixed in: 10.5.2Fix
go get github.com/mattermost/mattermost-server@v10.5.2Go/github.com/mattermost/mattermost-server
Introduced in:
10.4.0Fixed in: 10.4.4Fix
go get github.com/mattermost/mattermost-server@v10.4.4Go/github.com/mattermost/mattermost-server
Introduced in:
9.11.0Fixed in: 9.11.10Fix
go get github.com/mattermost/mattermost-server@v9.11.10Go/github.com/mattermost/mattermost/server/v8
Introduced in:
10.5.0Fixed in: 10.5.2Fix
go get github.com/mattermost/mattermost/server/v8@v10.5.2Go/github.com/mattermost/mattermost/server/v8
Introduced in:
10.4.0Fixed in: 10.4.4Fix
go get github.com/mattermost/mattermost/server/v8@v10.4.4Go/github.com/mattermost/mattermost/server/v8
Introduced in:
9.11.0Fixed in: 9.11.10Fix
go get github.com/mattermost/mattermost/server/v8@v9.11.10Go/github.com/mattermost/mattermost/server/v8
Introduced in:
0Fixed in: 8.0.0-20250227102013-aa4623a93199Fix
go get github.com/mattermost/mattermost/server/v8@v8.0.0-20250227102013-aa4623a93199