CVE-2025-4981

Path Traversal Leading to RCE by Any Authenticated Mattermost User

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

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.

Category

9.9
CVSS
Severity: Critical
CVSS 3.1 •
EPSS 0.21%
Vendor Advisory mattermost.com
Affected: Mattermost Mattermost
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2025-4981?
CVE-2025-4981 has been scored as a critical severity vulnerability.
How to fix CVE-2025-4981?
To fix CVE-2025-4981: Update Mattermost to versions 10.9.0, 10.5.6, 9.11.16, 10.8.1, 10.7.3, 10.6.6 or higher.
Is CVE-2025-4981 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2025-4981 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2025-4981?
CVE-2025-4981 affects Mattermost Mattermost.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.