Path Traversal Leading to RCE by Any Authenticated Mattermost User
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-427.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Mattermost | Mattermost | 10.5.0 – 10.5.5; 9.11.0 – 9.11.15; 10.8.0 – 10.8.0; 10.7.0 – 10.7.2; 10.6.0 – 10.6.5 | 10.9.0, 10.5.6, 9.11.16, 10.8.1, 10.7.3, 10.6.6 | Patch available | CNA |
| — | github.com/mattermost/mattermost-server (Go) | before 0.0.0-20250519205859-65aec10162f6 | 0.0.0-20250519205859-65aec10162f6 | Patch available | GHSA-qh58-9v3j-wcjc |
| — | github.com/mattermost/mattermost/server/v8 (Go) | before 8.0.0-20250519205859-65aec10162f6 | 8.0.0-20250519205859-65aec10162f6 | Patch available | GHSA-qh58-9v3j-wcjc |
| — | github.com/mattermost/mattermost/server/v8 (Go) | 10.5.0 to before 10.5.6 | 10.5.6 | Patch available | GHSA-qh58-9v3j-wcjc |
| — | github.com/mattermost/mattermost/server/v8 (Go) | 9.11.0 to before 9.11.16 | 9.11.16 | Patch available | GHSA-qh58-9v3j-wcjc |
| — | github.com/mattermost/mattermost/server/v8 (Go) | 10.8.0 to before 10.8.1 | 10.8.1 | Patch available | GHSA-qh58-9v3j-wcjc |
| — | github.com/mattermost/mattermost/server/v8 (Go) | 10.7.0 to before 10.7.3 | 10.7.3 | Patch available | GHSA-qh58-9v3j-wcjc |
| — | github.com/mattermost/mattermost/server/v8 (Go) | 10.6.0 to before 10.6.6 | 10.6.6 | Patch available | GHSA-qh58-9v3j-wcjc |
- Mattermost VendorMattermost Affected 10.5.0 – 10.5.5; 9.11.0 – 9.11.15; 10.8.0 – 10.8.0; 10.7.0 – 10.7.2; 10.6.0 – 10.6.5 Fixed in 10.9.0, 10.5.6, 9.11.16, 10.8.1, 10.7.3, 10.6.6 Patch available CNA
- github.com/mattermost/mattermost-server (Go) Vendor— Affected before 0.0.0-20250519205859-65aec10162f6 Fixed in 0.0.0-20250519205859-65aec10162f6 Patch available GHSA-qh58-9v3j-wcjc
- github.com/mattermost/mattermost/server/v8 (Go) Vendor— Affected before 8.0.0-20250519205859-65aec10162f6 Fixed in 8.0.0-20250519205859-65aec10162f6 Patch available GHSA-qh58-9v3j-wcjc
- github.com/mattermost/mattermost/server/v8 (Go) Vendor— Affected 10.5.0 to before 10.5.6 Fixed in 10.5.6 Patch available GHSA-qh58-9v3j-wcjc
- github.com/mattermost/mattermost/server/v8 (Go) Vendor— Affected 9.11.0 to before 9.11.16 Fixed in 9.11.16 Patch available GHSA-qh58-9v3j-wcjc
- github.com/mattermost/mattermost/server/v8 (Go) Vendor— Affected 10.8.0 to before 10.8.1 Fixed in 10.8.1 Patch available GHSA-qh58-9v3j-wcjc
- github.com/mattermost/mattermost/server/v8 (Go) Vendor— Affected 10.7.0 to before 10.7.3 Fixed in 10.7.3 Patch available GHSA-qh58-9v3j-wcjc
- github.com/mattermost/mattermost/server/v8 (Go) Vendor— Affected 10.6.0 to before 10.6.6 Fixed in 10.6.6 Patch available GHSA-qh58-9v3j-wcjc
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:* | 9.11.0 to before 9.11.16; 10.5.0 to before 10.5.6; 10.6.0 to before 10.6.6; 10.7.0 to before 10.7.3 | Vulnerable | Mattermost |
| cpe:2.3:a:mattermost:mattermost_server:10.8.0:-:*:*:*:*:*:* | 10.8.0 | Vulnerable | Mattermost |
| cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc1:*:*:*:*:*:* | 10.8.0 rc1 | Vulnerable | Mattermost |
| cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc2:*:*:*:*:*:* | 10.8.0 rc2 | Vulnerable | Mattermost |
| cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc3:*:*:*:*:*:* | 10.8.0 rc3 | Vulnerable | Mattermost |
- cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:* Versions 9.11.0 to before 9.11.16; 10.5.0 to before 10.5.6; 10.6.0 to before 10.6.6; 10.7.0 to before 10.7.3 Vulnerable ·Mattermost
- cpe:2.3:a:mattermost:mattermost_server:10.8.0:-:*:*:*:*:*:* Versions 10.8.0 Vulnerable ·Mattermost
- cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc1:*:*:*:*:*:* Versions 10.8.0 rc1 Vulnerable ·Mattermost
- cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc2:*:*:*:*:*:* Versions 10.8.0 rc2 Vulnerable ·Mattermost
- cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc3:*:*:*:*:*:* Versions 10.8.0 rc3 Vulnerable ·Mattermost
Remediation
- Fix · CNA Mattermost (Mattermost) Fixed in 10.9.0, 10.5.6, 9.11.16, 10.8.1, 10.7.3, 10.6.6
- Fix · GHSA-qh58-9v3j-wcjc github.com/mattermost/mattermost-server (Go) Fixed in 0.0.0-20250519205859-65aec10162f6 Advisory →
- Fix · GHSA-qh58-9v3j-wcjc github.com/mattermost/mattermost/server/v8 (Go) Fixed in 8.0.0-20250519205859-65aec10162f6 Advisory →
- Fix · GHSA-qh58-9v3j-wcjc github.com/mattermost/mattermost/server/v8 (Go) Fixed in 10.5.6 Advisory →
- Fix · GHSA-qh58-9v3j-wcjc github.com/mattermost/mattermost/server/v8 (Go) Fixed in 9.11.16 Advisory →
- Fix · GHSA-qh58-9v3j-wcjc github.com/mattermost/mattermost/server/v8 (Go) Fixed in 10.8.1 Advisory →
- Fix · GHSA-qh58-9v3j-wcjc github.com/mattermost/mattermost/server/v8 (Go) Fixed in 10.7.3 Advisory →
- Fix · GHSA-qh58-9v3j-wcjc github.com/mattermost/mattermost/server/v8 (Go) Fixed in 10.6.6 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-4981
- 2026-10-03 Alias added: GHSA-qh58-9v3j-wcjc
References
More Mattermost Server vulnerabilities
- TI-2025-18933 Arbitrary file read in Mattermost Boards via import & export board archive CVSS 3.1CRITICAL 9.9
- TI-2017-14068 An issue was discovered in Mattermost Server before 3.6.2. CVSS 3.1CRITICAL 9.8
- TI-2017-14060 An issue was discovered in Mattermost Server before 3.8.2, 3.7.5, and 3.6.7. CVSS 3.1CRITICAL 9.8
- TI-2017-14048 An issue was discovered in Mattermost Server before 4.1.0, 4.0.4, and 3.10.3. CVSS 3.1CRITICAL 9.8
- TI-2025-14360 Arbitrary file read via block duplication in Mattermost Boards CVSS 3.1CRITICAL 9.9
- TI-2018-15213 An issue was discovered in Mattermost Server before 5.2 and 5.1.1. CVSS 3.1CRITICAL 9.8
Sources
- CVE-2025-4981 · CVE Program
- CVE-2025-4981 · NVD
- FIRST EPSS
- GHSA-qh58-9v3j-wcjc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences