ADVISORIES

GitHub Advisory Database

GHSA-x67c-v8jr-p29r

Mattermost Fails to Sanitize Path Traversal Sequences

Details

Mattermost versions 10.8.x <= 10.8.3, 10.5.x <= 10.5.8, 9.11.x <= 9.11.17, 10.9.x <= 10.9.2 fails to sanitize path traversal sequences in template file destination paths, which allows a system admin to perform path traversal attacks via malicious path components, potentially enabling malicious file placement outside intended directories.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/mattermost/mattermost-server
From 10.8.0 before 10.8.4 (fixed in 10.8.4)
Gogithub.com/mattermost/mattermost-server
From 10.5.0 before 10.5.9 (fixed in 10.5.9)
Gogithub.com/mattermost/mattermost-server
From 9.11.0 before 9.11.18 (fixed in 9.11.18)
Gogithub.com/mattermost/mattermost-server
From 10.9.0 before 10.9.3 (fixed in 10.9.3)
Gogithub.com/mattermost/mattermost/server/v8
All versions before 8.0.0-20250708065844-b38e2eccda18 (fixed in 8.0.0-20250708065844-b38e2eccda18)
Gogithub.com/mattermost/mattermost-server/v5
All versions up to and including 5.39.5
Gogithub.com/mattermost/mattermost-server/v6
All versions up to and including 6.7.2

References