CVE-2025-4981 json
Path Traversal Leading to RCE by Any Authenticated Mattermost User
published last yr. modified 4mo ago also GHSA-qh58-9v3j-wcjc , GO-2025-3769 , EUVD-2025-28315
- cvss
- 9.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
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.
Patch / fix
- go github.com/mattermost/mattermost-server 0.0.0-20250519205859-65aec10162f6, 9.11.16+incompatible, 10.5.6+incompatible, 10.6.6+incompatible, 10.7.3+incompatible, 10.8.1+incompatible
- go github.com/mattermost/mattermost/server/v8 8.0.0-20250519205859-65aec10162f6, 9.11.16, 10.5.6, 10.6.6, 10.7.3, 10.8.1
- Mattermost Mattermost 9.11.16, 10.5.6, 10.6.6, 10.7.3, 10.8.1, 10.9.0
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20250730T213748-1.1
opensuse advisories openSUSE-SU-2025:15405-1
Is CVE-2025-4981 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
1.02% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/mattermost/mattermost-server | <0.0.0-20250519205859-65aec10162f6 >=9.11.0+incompatible, <9.11.16+incompatible >=10.5.0+incompatible, <10.5.6+incompatible >=10.6.0+incompatible, <10.6.6+incompatible >=10.7.0+incompatible, <10.7.3+incompatible >=10.8.0+incompatible, <10.8.1+incompatible |
0.0.0-20250519205859-65aec10162f6 9.11.16+incompatible 10.5.6+incompatible 10.6.6+incompatible 10.7.3+incompatible 10.8.1+incompatible |
| go | github.com/mattermost/mattermost/server/v8 | <8.0.0-20250519205859-65aec10162f6 >=10.5.0, <10.5.6 >=9.11.0, <9.11.16 >=10.8.0, <10.8.1 >=10.7.0, <10.7.3 >=10.6.0, <10.6.6 |
8.0.0-20250519205859-65aec10162f6 10.5.6 9.11.16 10.8.1 10.7.3 10.6.6 |
| go | github.com/mattermost/mattermost-server/v5 | all versions |
no fix listed |
| go | github.com/mattermost/mattermost-server/v6 | all versions |
no fix listed |
Affected products
- Mattermost Mattermost
Classification
- Weakness
-
- CWE-427 Uncontrolled Search Path Element
References
Sources
- CVE List CVE-2025-4981
- GitHub Advisory GHSA-qh58-9v3j-wcjc
- NVD CVE-2025-4981
- OSV GO-2025-3769
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.