Skip to content

CVE-2025-4981

Mattermost Server remote code execution

9.9 CRITICALEPSS 0.85%
  1. Published20 Jun 2025

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 3.1 breakdown

Attack vectorNetwork
Attack complexityLow
Privileges requiredLow
User interactionNone
ScopeChanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected products

Mattermost Server≥ 10.5.0 < 10.5.6 · ≥ 10.6.0 < 10.6.6 · ≥ 10.7.0 < 10.7.3 · ≥ 9.11.0 < 9.11.16

Remediation

Fixed in
Mattermost Server≥ 10.5.6

Frequently asked

Is CVE-2025-4981 being actively exploited?

CVE-2025-4981 is not in the CISA KEV catalog. Its EPSS exploit probability is 0.85%.

How severe is CVE-2025-4981?

CVE-2025-4981 has a CVSS 3.1 base score of 9.9, rated critical. EPSS estimates a 0.85% probability of exploitation.

Which products are affected by CVE-2025-4981?

Affected products include Mattermost Server.

How do I fix CVE-2025-4981?

Upgrade affected software to a fixed version, for example Mattermost Server 10.5.6 or later, then confirm no affected versions remain in your inventory.

How Secuno handles this

Secuno correlates vulnerabilities like CVE-2025-4981 against the real software inventory on every managed device, as each hourly inventory arrives. Rather than a static severity, each match is scored in context: exploit availability, EPSS, the asset's exposure, and business criticality decide where it lands in the queue. If an affected version is present anywhere across your portfolio, it surfaces automatically with a prioritised remediation path.

Get Patch this first every Monday

Five vulnerabilities that matter this week, ranked on real exploitation. Plain language, one email, no spam.

You can unsubscribe with one click from every issue. We handle your details as described in our privacy policy.

Data from the NVD, CISA KEV catalog and FIRST EPSS. CVSS 3.1 base score shown where available.