# CVE-2025-4981: Path Traversal Leading to RCE by Any Authenticated Mattermost User

> CVE-2025-4981: Path Traversal Leading to RCE by Any Authenticated Mattermost User. CVSS 9.9 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-4981
Last updated: 2026-06-17T09:34:26Z

- Published: 2025-06-20 10:27 UTC · Updated: 2026-06-17 09:34 UTC · Assigner: Mattermost
- CVSS: 9.9 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS: 1.0%, 63th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: 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.

## Affected vendors and products

- Mattermost: Mattermost

## Tracked companies

- [Mattermost](https://rewindex.com/company/mattermost.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-4981)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-4981)
- [https://mattermost.com/security-updates](https://mattermost.com/security-updates)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-4981 · Markdown: https://rewindex.com/cve/CVE-2025-4981.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-4981 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:11:44.177Z
