CVE-2025-4981
June 20, 2025
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.
Affected Packages
github.com/mattermost/mattermost (GO):
Affected version(s) >=v10.7.0 <10.7.3Fix Suggestion:
Update to version 10.7.3github.com/mattermost/mattermost (GO):
Affected version(s) >=v10.6.0 <10.6.5Fix Suggestion:
Update to version 10.6.5github.com/mattermost/mattermost (GO):
Affected version(s) =v10.8.0 <v10.8.1Fix Suggestion:
Update to version v10.8.1github.com/mattermost/mattermost/server/v8 (GO):
Affected version(s) >=v8.0.0-20230429093631-aac4f2337933 <v8.0.0-20250519205859-65aec10162f6Fix Suggestion:
Update to version v8.0.0-20250519205859-65aec10162f6github.com/mattermost/mattermost (GO):
Affected version(s) >=v9.11.0 <v9.11.16Fix Suggestion:
Update to version v9.11.16github.com/mattermost/mattermost (GO):
Affected version(s) >=v10.5.0 <10.5.6Fix Suggestion:
Update to version 10.5.6Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.4
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
9.9
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Uncontrolled Search Path Element
EPSS
Base Score:
0.47