Skip to main content
← All vulnerabilities
CVE-2025-4981GO-2025-3769GHSA-QH58-9V3J-WCJC

Path Traversal Leading to RCE by Any Authenticated Mattermost User

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.0.0-20250519205859-65aec10162f6, 9.11.16+incompatible, 10.5.6+incompatible, 10.6.6+incompatible, 10.7.3+incompatible, and 7 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Mattermost Mattermost

    From 10.5.0 · through 10.5.5; From 9.11.0 · through 9.11.15; From 10.8.0 · through 10.8.0; From 10.7.0 · through 10.7.2; From 10.6.0 · through 10.6.5

  • github.com/mattermost/mattermost-serverGo

    fixed in 0.0.0-20250519205859-65aec10162f6; From 9.11.0+incompatible · fixed in 9.11.16+incompatible; From 10.5.0+incompatible · fixed in 10.5.6+incompatible; From 10.6.0+incompatible · fixed in 10.6.6+incompatible; From 10.7.0+incompatible · fixed in 10.7.3+incompatible; From 10.8.0+incompatible · fixed in 10.8.1+incompatible

  • github.com/mattermost/mattermost-server/v5Go

    All versions

  • github.com/mattermost/mattermost-server/v6Go

    All versions

  • github.com/mattermost/mattermost/server/v8Go

    fixed in 8.0.0-20250519205859-65aec10162f6

  • github.com/mattermost/mattermost-serverGo

    fixed in 0.0.0-20250519205859-65aec10162f6

  • github.com/mattermost/mattermost/server/v8Go

    From 10.5.0 · fixed in 10.5.6

  • github.com/mattermost/mattermost/server/v8Go

    From 9.11.0 · fixed in 9.11.16

  • github.com/mattermost/mattermost/server/v8Go

    From 10.8.0 · fixed in 10.8.1

  • github.com/mattermost/mattermost/server/v8Go

    From 10.7.0 · fixed in 10.7.3

  • github.com/mattermost/mattermost/server/v8Go

    From 10.6.0 · fixed in 10.6.6

References 1

mattermost.com