CVE-2025-4981 Path Traversal Leading to RCE by Any Authenticated Mattermost User
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
Mattermost versions 10.5.x <= 10.5.5, 9.11.x <= 9.11.15, 10.8.x <= 10.8.0, 10.7.x <= 10.7.2, 10.6.x <= 10.6.5 fail to sanitize filenames in the archive extractor which allows authenticated users to write files to arbitrary locations on the filesystem via uploading archives with path traversal sequences in filenames, potentially leading to remote code execution. The vulnerability impacts instances where file uploads and document search by content is enabled (FileSettings.EnableFileAttachments = true and FileSettings.ExtractContent = true). These configuration settings are enabled by default.
Upgrade path
4 packages: 3 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Mattermost github.com/mattermost/mattermost-server/v6(Go) | < 0.0.0-20250519205859-65aec10162f6; >= 9.11.0+incompatible, < 9.11.16+incompatible; >= 10.5.0+incompatible, < 10.5.6+incompatible; >= 10.6.0+incompatible, < 10.6.6+incompatible +3 more | 0.0.0-20250519205859-65aec10162f6, 9.11.16+incompatible, 10.5.6+incompatible, 10.6.6+incompatible, 10.7.3+incompatible, 10.8.1+incompatible | Partially fixed |
| Mattermost | >= 9.11.0, <= 9.11.15; >= 10.5.0, <= 10.5.5; >= 10.6.0, <= 10.6.5; >= 10.7.0, <= 10.7.2 +1 more | after 9.11.15, 10.5.5, 10.6.5, 10.7.2, 10.8.0 | Fixed |
| Mattermost github.com/mattermost/mattermost/server/v8(Go) | < 8.0.0-20250519205859-65aec10162f6; = 10.8.0; >= 9.11.0, < 9.11.16; >= 9.11.0, <= 9.11.15 +7 more | 8.0.0-20250519205859-65aec10162f6, 9.11.16, 10.5.6, 10.6.6, 10.7.3, 10.8.1 | Fixed |
| mattermost server | = 10.8.0; = 10.8.0-rc1; = 10.8.0-rc2; = 10.8.0-rc3 +4 more | 9.11.16, 10.5.6, 10.6.6, 10.7.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Mattermost github.com/mattermost/mattermost-server/v6(Go) | < 0.0.0-20250519205859-65aec10162f6 | 0.0.0-20250519205859-65aec10162f6 |
| Mattermost github.com/mattermost/mattermost/server/v8(Go) | < 8.0.0-20250519205859-65aec10162f6 | 8.0.0-20250519205859-65aec10162f6 |
| Mattermost github.com/mattermost/mattermost/server/v8(Go) | >= 10.5.0, < 10.5.6 | 10.5.6 |
| Mattermost github.com/mattermost/mattermost/server/v8(Go) | >= 9.11.0, < 9.11.16 | 9.11.16 |
| Mattermost github.com/mattermost/mattermost/server/v8(Go) | >= 10.8.0, < 10.8.1 | 10.8.1 |
| Mattermost github.com/mattermost/mattermost/server/v8(Go) | = 10.8.0 | No fix listed |
| Mattermost github.com/mattermost/mattermost/server/v8(Go) | >= 10.7.0, < 10.7.3 | 10.7.3 |
| Mattermost github.com/mattermost/mattermost/server/v8(Go) | >= 10.6.0, < 10.6.6 | 10.6.6 |
| Mattermost github.com/mattermost/mattermost-server/v6(Go) | >= 9.11.0+incompatible, < 9.11.16+incompatible | 9.11.16+incompatible |
| Mattermost github.com/mattermost/mattermost-server/v6(Go) | >= 10.5.0+incompatible, < 10.5.6+incompatible | 10.5.6+incompatible |
| Mattermost github.com/mattermost/mattermost-server/v6(Go) | >= 10.6.0+incompatible, < 10.6.6+incompatible | 10.6.6+incompatible |
| Mattermost github.com/mattermost/mattermost-server/v6(Go) | >= 10.7.0+incompatible, < 10.7.3+incompatible | 10.7.3+incompatible |
| Mattermost github.com/mattermost/mattermost-server/v6(Go) | >= 10.8.0+incompatible, < 10.8.1+incompatible | 10.8.1+incompatible |
| Mattermost github.com/mattermost/mattermost-server/v6(Go) | All versions | No fix listed |
| Mattermost github.com/mattermost/mattermost/server/v8(Go) | >= 10.5.0, <= 10.5.5 | No fix listed |
| Mattermost github.com/mattermost/mattermost/server/v8(Go) | >= 9.11.0, <= 9.11.15 | No fix listed |
| Mattermost github.com/mattermost/mattermost/server/v8(Go) | >= 10.7.0, <= 10.7.2 | No fix listed |
| Mattermost github.com/mattermost/mattermost/server/v8(Go) | >= 10.6.0, <= 10.6.5 | No fix listed |
| Mattermost | >= 10.5.0, <= 10.5.5 | No fix listed |
| Mattermost | >= 9.11.0, <= 9.11.15 | No fix listed |
| Mattermost | >= 10.8.0, <= 10.8.0 | No fix listed |
| Mattermost | >= 10.7.0, <= 10.7.2 | No fix listed |
| Mattermost | >= 10.6.0, <= 10.6.5 | No fix listed |
| mattermost server | >= 9.11.0, < 9.11.16 | 9.11.16 |
| mattermost server | >= 10.5.0, < 10.5.6 | 10.5.6 |
Show 6 more
| Product | Affected versions | Fixed in |
|---|---|---|
| mattermost server | >= 10.6.0, < 10.6.6 | 10.6.6 |
| mattermost server | >= 10.7.0, < 10.7.3 | 10.7.3 |
| mattermost server | = 10.8.0 | No fix listed |
| mattermost server | = 10.8.0-rc1 | No fix listed |
| mattermost server | = 10.8.0-rc2 | No fix listed |
| mattermost server | = 10.8.0-rc3 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- mattermost.com vendor-advisory
- github.com vendor-advisory