CVE-2025-4981
Last modified
CVE-2025-4981 is a critical-severity vulnerability rated 9.9/10 on the CVSS scale. 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). EPSS estimates a 0.69% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Mattermost | Mattermost Server | >= 9.11.0, < 9.11.16 |
| Mattermost | Mattermost Server | >= 10.5.0, < 10.5.6 |
| Mattermost | Mattermost Server | >= 10.6.0, < 10.6.6 |
| Mattermost | Mattermost Server | >= 10.7.0, < 10.7.3 |
| Mattermost | Mattermost Server | 10.8.0 |
References
- https://mattermost.com/security-updatesVendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-4981?
How severe is CVE-2025-4981?
How do I fix CVE-2025-4981?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-49794A use-after-free vulnerability was found in libxml2. This is…9.1
- CVE-2025-49795A NULL pointer dereference vulnerability was found in libxml…7.5
- CVE-2025-49796A vulnerability was found in libxml2. Processing certain sch…9.1
- CVE-2025-49797Multiple Brother driver installers for Windows contain a pri…8.5
- CVE-2025-4980A vulnerability has been found in Netgear DGND3700 1.1.00.15…6.9
- CVE-2025-49809mtr through 0.95, in certain privileged contexts, mishandles…7.8
- CVE-2025-49810Mattermost versions 10.5.x <= 10.5.8 fail to validate access…4.3
- CVE-2025-49812In some mod_ssl configurations on Apache HTTP Server version…7.4
- CVE-2025-49813An improper neutralization of special elements used in an OS…7.2
- CVE-2025-49814Rejected reason: Not used
- CVE-2025-49815Rejected reason: Not used
- CVE-2025-49816Rejected reason: Not used
Are you affected by CVE-2025-4981?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
