Critical severity · published Jun 20, 2025
CVE-2025-4981
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…
9.9
CVSS
1%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)1.0% · higher than 63% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MS
Mattermost Server · Mattermost
9.11.0 before 9.11.16; 10.5.0 before 10.5.6; 10.6.0 before 10.6.6; 10.7.0 before 10.7.3; 10.8.0; 10.8.0; +2 more · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-4981
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-4981
Vendor Advisory
https://mattermost.com/security-updates
More from Mattermost Server
9.9
CVE-2026-4858
Path traversal in integration action URL leading to arbitrary API execution via system admin’s auth token.
9.9
CVE-2025-12421
Account Takeover via Code Exchange Endpoint
9.9
CVE-2025-12419
Account takeover on OAuth/OpenID-enabled servers
9.8
CVE-2023-6458
Mattermost webapp fails to validate route parameters in/<TEAM_NAME>/channels/<CHANNEL_NAME> allowing an attacker to perform a client-side path traversal
9.8
CVE-2017-18920
An issue was discovered in Mattermost Server before 3.6.2
