CVE Watchtower

CVE-2025-4981Mattermost Mattermost Server Uncontrolled Search Path Element

NVDCVSS scored by responsibledisclosure@mattermost.com

Vulnerability Summary

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.
Severity Level
CRITICAL(9.9)
Published Date
Jun 20, 2025
Last Modified
Jul 8, 2025
Exploitation Status
No confirmed exploitation yet
Root Weakness (CWE)
The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.
CVSS v3.1 Base Metrics — Score 9.9 (CRITICAL)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeChanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Mattermost Mattermost Server >= 9.11.0 and < 9.11.16
  • Mattermost Mattermost Server >= 10.5.0 and < 10.5.6
  • Mattermost Mattermost Server >= 10.6.0 and < 10.6.6
  • Mattermost Mattermost Server >= 10.7.0 and < 10.7.3
  • Mattermost Mattermost Server
Patched Versions
  • Mattermost Mattermost Server 9.11.16
  • Mattermost Mattermost Server 10.5.6
  • Mattermost Mattermost Server 10.6.6
  • Mattermost Mattermost Server 10.7.3

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is critical.

  1. Check whether you run Mattermost Mattermost Server and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Jun 20, 2025Published
  • Jul 8, 2025Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Mattermost Mattermost Server CVEsYou are reading CVE-2025-4981. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

External References

Data last checked: Nov 22, 2026 18:26 UTC