CVE-2025-4981
published 2025-06-20CVE-2025-4981: 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…
PriorityP265critical9.9CVSS 3.1
AVNACLPRLUINSCCHIHAH
EPSS
0.71%
49.7th percentile
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
22 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| github.com | mattermost_mattermost-server | >= 0 < 0.0.0-20250519205859-65aec10162f6 | 0.0.0-20250519205859-65aec10162f6 |
| github.com | mattermost_mattermost-server | >= 10.5.0+incompatible < 10.5.6+incompatible | 10.5.6+incompatible |
| github.com | mattermost_mattermost-server | >= 10.6.0+incompatible < 10.6.6+incompatible | 10.6.6+incompatible |
| github.com | mattermost_mattermost-server | >= 10.7.0+incompatible < 10.7.3+incompatible | 10.7.3+incompatible |
| github.com | mattermost_mattermost-server | >= 10.8.0+incompatible < 10.8.1+incompatible | 10.8.1+incompatible |
| github.com | mattermost_mattermost-server | >= 9.11.0+incompatible < 9.11.16+incompatible | 9.11.16+incompatible |
| github.com | mattermost_mattermost_server_v8 | >= 0 < 8.0.0-20250519205859-65aec10162f6 | 8.0.0-20250519205859-65aec10162f6 |
| github.com | mattermost_mattermost_server_v8 | >= 10.5.0 < 10.5.6 | 10.5.6 |
| github.com | mattermost_mattermost_server_v8 | >= 10.6.0 < 10.6.6 | 10.6.6 |
| github.com | mattermost_mattermost_server_v8 | >= 10.7.0 < 10.7.3 | 10.7.3 |
| github.com | mattermost_mattermost_server_v8 | >= 10.8.0 < 10.8.1 | 10.8.1 |
| github.com | mattermost_mattermost_server_v8 | >= 9.11.0 < 9.11.16 | 9.11.16 |
| mattermost | mattermost | 10.5.0 – 10.5.5 | — |
| mattermost | mattermost | 10.6.0 – 10.6.5 | — |
| mattermost | mattermost | 10.7.0 – 10.7.2 | — |
| mattermost | mattermost | 10.8.0 – 10.8.0 | — |
| mattermost | mattermost | 9.11.0 – 9.11.15 | — |
| mattermost | mattermost_server | — | — |
| mattermost | mattermost_server | >= 10.5.0 < 10.5.6 | 10.5.6 |
| mattermost | mattermost_server | >= 10.6.0 < 10.6.6 | 10.6.6 |
| mattermost | mattermost_server | >= 10.7.0 < 10.7.3 | 10.7.3 |
| mattermost | mattermost_server | >= 9.11.0 < 9.11.16 | 9.11.16 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Mattermost allows authenticated users to write files to arbitrary locations in github.com/mattermost/mattermost-server
osv·2025-07-28
CVE-2025-4981 Mattermost allows authenticated users to write files to arbitrary locations in github.com/mattermost/mattermost-server
Mattermost allows authenticated users to write files to arbitrary locations in github.com/mattermost/mattermost-server
Mattermost allows authenticated users to write files to arbitrary locations in github.com/mattermost/mattermost-server
GHSA
Mattermost allows authenticated users to write files to arbitrary locations
ghsa·2025-06-20
CVE-2025-4981 [CRITICAL] CWE-427 Mattermost allows authenticated users to write files to arbitrary locations
Mattermost allows authenticated users to write files to arbitrary locations
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.
OSV
Mattermost allows authenticated users to write files to arbitrary locations
osv·2025-06-20
CVE-2025-4981 [CRITICAL] Mattermost allows authenticated users to write files to arbitrary locations
Mattermost allows authenticated users to write files to arbitrary locations
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2025-06-20
Published