Skip to content

CVE-2025-4981 Path Traversal Leading to RCE by Any Authenticated Mattermost User

CriticalCVSS 9.9 EPSS 1.1%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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
ProductAffected versionsFixed 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