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

CVE-2025-4981 affects 31 listed versions of Mattermost in the Dawnsentry catalogue.

9.9CVSS critical
None knownexploitation
1%EPSS (next 30 days)
20 June 2025published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Mattermost

31 of 250 listed versions are affected. Fixed in 10.8.1, 10.7.3, 10.6.6, 10.5.6, 9.11.16. The newest release, 12.1.0, is not affected.

10.8.0 10.8.0-rc3 10.8.0-rc2 10.8.0-rc1 10.7.2 10.7.1 10.7.0 10.6.5 10.6.4 10.6.3 10.6.2 10.6.1 10.6.0 10.5.5 10.5.4 10.5.3 10.5.2 10.5.1 10.5.0 9.11.15 9.11.14 9.11.13 9.11.12 9.11.11 9.11.10 9.11.9 9.11.8 9.11.7 9.11.6 9.11.5 9.11.4

What it is

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:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H (Mattermost)

Published by Mattermost on 20 June 2025. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2025-4981 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.