Path Traversal in Template Upload Allows Uploading Files Outside Target Directory
Mattermost
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/mattermost/mattermost-server Go |
|
Mattermost
| Product | Affected | Fixed in |
|---|---|---|
| github.com/mattermost/mattermost-server Go |
|
≥ 10.9.0+incompatible · < 10.9.3+incompatible
|
| github.com/mattermost/mattermost/server/v8 Go |
|
|
| github.com/mattermost/mattermost-server/v5 Go |
| No fix yet |
| github.com/mattermost/mattermost-server/v6 Go |
| No fix yet |
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.
From the CVE record · Mattermost
Affected Mattermost versions do not sanitize path traversal sequences in template file destination paths. A system admin can supply malicious path components to place files outside intended directories. The input does not specify whether this requires network access or user interaction.
Teams running Mattermost 10.8.x through 10.8.3, 10.5.x through 10.5.8, 9.11.x through 9.11.17, or 10.9.x through 10.9.2 should check their installations, as should users of the listed affected Go packages, including the v5 and v6 packages for which no fix is listed.