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?
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
