Read the docs
TI-2025-04465 Aliases CVE-2025-4981GHSA-qh58-9v3j-wcjc

Path Traversal Leading to RCE by Any Authenticated Mattermost User

Priority MEDIUM 45CWE-427Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01016 63rd percentileScored 2026-11-07
Fix Fixed Mattermost (Mattermost): 10.9.0, 10.5.6, 9.11.16 +3github.com/mattermost/mattermost-server (Go): 0.0.0-20250519205859-65aec10162f6+1 more product

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

VendorProductAffected versionsFixed inStatusSource
MattermostMattermost10.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.510.9.0, 10.5.6, 9.11.16, 10.8.1, 10.7.3, 10.6.6Patch availableCNA
—github.com/mattermost/mattermost-server (Go)before 0.0.0-20250519205859-65aec10162f60.0.0-20250519205859-65aec10162f6Patch availableGHSA-qh58-9v3j-wcjc
—github.com/mattermost/mattermost/server/v8 (Go)before 8.0.0-20250519205859-65aec10162f68.0.0-20250519205859-65aec10162f6Patch availableGHSA-qh58-9v3j-wcjc
—github.com/mattermost/mattermost/server/v8 (Go)10.5.0 to before 10.5.610.5.6Patch availableGHSA-qh58-9v3j-wcjc
—github.com/mattermost/mattermost/server/v8 (Go)9.11.0 to before 9.11.169.11.16Patch availableGHSA-qh58-9v3j-wcjc
—github.com/mattermost/mattermost/server/v8 (Go)10.8.0 to before 10.8.110.8.1Patch availableGHSA-qh58-9v3j-wcjc
—github.com/mattermost/mattermost/server/v8 (Go)10.7.0 to before 10.7.310.7.3Patch availableGHSA-qh58-9v3j-wcjc
—github.com/mattermost/mattermost/server/v8 (Go)10.6.0 to before 10.6.610.6.6Patch availableGHSA-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

CPEVersionsRoleVendor
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.3VulnerableMattermost
cpe:2.3:a:mattermost:mattermost_server:10.8.0:-:*:*:*:*:*:*10.8.0VulnerableMattermost
cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc1:*:*:*:*:*:*10.8.0 rc1VulnerableMattermost
cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc2:*:*:*:*:*:*10.8.0 rc2VulnerableMattermost
cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc3:*:*:*:*:*:*10.8.0 rc3VulnerableMattermost
  • 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

  1. 2026-10-02 Threatist record created from CVE-2025-4981
  2. 2026-10-03 Alias added: GHSA-qh58-9v3j-wcjc

References

  • 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
See all 505 →

Sources