CVE-2025-4981CWE-427

Path Traversal Leading to RCE by Any Authenticated Mattermost User

Critical · published June 20, 2025

CVSS v3.1
9.9
EPSS
1%
Percentile
57.4
In the wild
Unconfirmed
What it is

🚨 An authenticated user can effectively rewrite your filesystem with a simple archive upload! This vulnerability in Mattermost could lead to devastating remote code execution. 🔥 Think of it like a sneaky delivery service that accepts poorly labeled packages — if you send a parcel that looks legitimate but comes with hidden instructions to be delivered all over your house, chaos ensues! With this vulnerability, an attacker could upload specially crafted archives that write files anywhere on your server. This could lead to total control over your application, allowing the attacker to execute arbitrary code and gain access to sensitive data. The consequences could be absolutely devastating!

Put simply

Think of it like a sneaky delivery service that accepts poorly labeled packages — if you send a parcel that looks legitimate but comes with hidden instructions to be delivered all over your house, chaos ensues! This vulnerability is due to the failure to sanitize filenames in the archive extractor, allowing authenticated users to exploit path traversal sequences in their uploaded files. When file uploads and document content search are enabled, it opens the door for remote code execution.

What to do

With this vulnerability, an attacker could upload specially crafted archives that write files anywhere on your server. This could lead to total control over your application, allowing the attacker to execute arbitrary code and gain access to sensitive data. The consequences could be absolutely devastating! To mitigate this risk, immediately update to Mattermost versions 10.5.6, 9.11.16, 10.8.1, 10.7.3, or 10.6.6. Additionally, consider disabling file attachments and content extraction features until you can ensure proper sanitization of uploaded files. 🛡️ You've got this! Follow these steps and you’ll be locking down your Mattermost instance in no time! 💪✨

The record
Technical detail
CVSS v3.1
9.9 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00840 · 57.4th percentile
Weakness
CWE-427 · Uncontrolled Search Path Element
Published
2025-06-20T10:27Z
EPSS history
Timeline
  • 20 JUN 10:27Z
    Path Traversal Leading to RCE by Any Authenticated Mattermost User
    cvelistv5