CVE-2025-4981

CRITICAL
Published Jun 20, 2025 Modified Jul 8, 2025 CWE-427

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 v3.1 Score

9.9
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Weakness Type (CWE)

CWE-427 CWE-427

Affected Products

Vendor Product
mattermost mattermost_server
mattermost mattermost_server
mattermost mattermost_server
mattermost mattermost_server
mattermost mattermost_server
mattermost mattermost_server
mattermost mattermost_server
mattermost mattermost_server

References

Frequently Asked Questions

What is 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 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. It has a CVSS v3.1 base score of 9.9 (CRITICAL).
How severe is CVE-2025-4981? +
CVE-2025-4981 has a CVSS v3.1 score of 9.9 out of 10, rated CRITICAL. This is a critical vulnerability that should be patched immediately.
What products are affected by CVE-2025-4981? +
CVE-2025-4981 affects products from mattermost, specifically: mattermost_server. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-4981? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-4981 — free, no signup required.

Start Free Scan