PT-2025-26301 · Mattermost · Mattermost

Dawid Kulikowski

·

Published

2025-05-12

·

Updated

2026-05-25

·

CVE-2025-4981

CVSS v3.1

9.9

Critical

VectorAV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Mattermost versions 10.5.x through 10.5.5 Mattermost versions 9.11.x through 9.11.15 Mattermost versions 10.8.x through 10.8.0 Mattermost versions 10.7.x through 10.7.2 Mattermost versions 10.6.x through 10.6.5
Description Mattermost fails to sanitize filenames in the archive extractor, allowing 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 (RCE). This issue impacts instances where file uploads and document search by content are enabled (FileSettings.EnableFileAttachments = true and FileSettings.ExtractContent = true), which are enabled by default. Approximately 97,000+ and 113,000+ potentially affected instances have been identified.
Recommendations Mattermost versions 10.5.x through 10.5.5: Update to a newer, fixed version. Mattermost versions 9.11.x through 9.11.15: Update to a newer, fixed version. Mattermost versions 10.8.x through 10.8.0: Update to a newer, fixed version. Mattermost versions 10.7.x through 10.7.2: Update to a newer, fixed version. Mattermost versions 10.6.x through 10.6.5: Update to a newer, fixed version.

Fix

RCE

Uncontrolled Search Path Element

Weakness Enumeration

Related Identifiers

BDU:2025-16018
CVE-2025-4981
GHSA-QH58-9V3J-WCJC
GO-2025-3769
OPENSUSE-SU-2025:15405-1

Affected Products

Mattermost