ADVISORIES

GitHub Advisory Database

GHSA-9fpw-c9x7-cv3j

Mattermost allows remote actor to set arbitrary RemoteId values for synced users

Details

Mattermost versions 9.9.x <= 9.9.0 and 9.5.x <= 9.5.6 fail to validate the source of sync messages and only allow the correct remote IDs, which allows a malicious remote to set arbitrary RemoteId values for synced users and therefore claim that a user was synced from another remote.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/mattermost/mattermost/server/v8
From 9.5.0 before 9.5.7 (fixed in 9.5.7)
Gogithub.com/mattermost/mattermost/server/v8
From 9.9.0 before 9.9.1 (fixed in 9.9.1)
Gogithub.com/mattermost/mattermost/server/v8
All versions before 8.0.0-20240604093018-5114c3b7cdb8 (fixed in 8.0.0-20240604093018-5114c3b7cdb8)
Gogithub.com/mattermost/mattermost
All versions before 5.3.2-0.20240604093018-5114c3b7cdb8 (fixed in 5.3.2-0.20240604093018-5114c3b7cdb8)

References