CVE-2025-4981

Path Traversal Leading to RCE by Any Authenticated Mattermost User

Published Jun 20, 2025 CVSS 3.1 · 9.9 Critical EPSS 1.0% KEV · Not listed
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.

Remediation

Vendor Solution

Update Mattermost to versions 10.9.0, 10.5.6, 9.11.16, 10.8.1, 10.7.3, 10.6.6 or higher.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-28315 Mattermost allows authenticated users to write files to arbitrary locations
Github GHSA Github GHSA GHSA-qh58-9v3j-wcjc Mattermost allows authenticated users to write files to arbitrary locations
References
History
Type Values Removed Values Added
First Time appeared Mattermost
Mattermost mattermost Server
CPEs cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
cpe:2.3:a:mattermost:mattermost_server:10.8.0:-:*:*:*:*:*:*
cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc1:*:*:*:*:*:*
cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc2:*:*:*:*:*:*
cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc3:*:*:*:*:*:*
Vendors & Products Mattermost
Mattermost mattermost Server
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Path Traversal Leading to RCE by Any Authenticated Mattermost User
Weaknesses CWE-427
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Mattermost
Published
Updated
Jun 20, 2025, 1:10 PM
Reserved
May 20, 2025, 6:57 AM
Status
Analyzed
Published
Jun 20, 2025, 11:15 AM
Modified
Jun 17, 2026, 9:34 AM