CVE-2025-4981Mattermost Server
Critical 9.9
Follow: this CVE · Mattermost · Mattermost Server We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.1
- 9.9
- EPSS
- —
- Auth required
- Yes
- Published
- Jun 20, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-427
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Mattermost Server.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/mattermost/mattermost-server |
< 0.0.0-20250519205859-65aec10162f6 |
0.0.0-20250519205859-65aec10162f6 |
go get github.com/mattermost/mattermost-server@v0.0.0-20250519205859-65aec10162f6 |
| Go | github.com/mattermost/mattermost-server |
< 0.0.0-20250519205859-65aec10162f6 |
0.0.0-20250519205859-65aec10162f6 |
go get github.com/mattermost/mattermost-server@v0.0.0-20250519205859-65aec10162f6 |
| Go | github.com/mattermost/mattermost-server |
≥ 9.11.0+incompatible < 9.11.16+incompatible |
9.11.16+incompatible |
go get github.com/mattermost/mattermost-server@v9.11.16+incompatible |
| Go | github.com/mattermost/mattermost-server |
≥ 10.5.0+incompatible < 10.5.6+incompatible |
10.5.6+incompatible |
go get github.com/mattermost/mattermost-server@v10.5.6+incompatible |
| Go | github.com/mattermost/mattermost-server |
≥ 10.6.0+incompatible < 10.6.6+incompatible |
10.6.6+incompatible |
go get github.com/mattermost/mattermost-server@v10.6.6+incompatible |
| Go | github.com/mattermost/mattermost-server/v5 |
all |
no fixed version | — |
| Go | github.com/mattermost/mattermost-server/v6 |
all |
no fixed version | — |
| Go | github.com/mattermost/mattermost/server/v8 |
< 8.0.0-20250519205859-65aec10162f6 |
8.0.0-20250519205859-65aec10162f6 |
go get github.com/mattermost/mattermost/server/v8@v8.0.0-20250519205859-65aec10162f6 |
| Go | github.com/mattermost/mattermost/server/v8 |
≥ 10.5.0 < 10.5.6 |
10.5.6 |
go get github.com/mattermost/mattermost/server/v8@v10.5.6 |
| Go | github.com/mattermost/mattermost/server/v8 |
≥ 9.11.0 < 9.11.16 |
9.11.16 |
go get github.com/mattermost/mattermost/server/v8@v9.11.16 |
| Go | github.com/mattermost/mattermost/server/v8 |
≥ 10.8.0 < 10.8.1 |
10.8.1 |
go get github.com/mattermost/mattermost/server/v8@v10.8.1 |
| Go | github.com/mattermost/mattermost/server/v8 |
≥ 10.7.0 < 10.7.3 |
10.7.3 |
go get github.com/mattermost/mattermost/server/v8@v10.7.3 |
| Go | github.com/mattermost/mattermost/server/v8 |
≥ 10.6.0 < 10.6.6 |
10.6.6 |
go get github.com/mattermost/mattermost/server/v8@v10.6.6 |
| Go | github.com/mattermost/mattermost/server/v8 |
< 8.0.0-20250519205859-65aec10162f6 |
8.0.0-20250519205859-65aec10162f6 |
go get github.com/mattermost/mattermost/server/v8@v8.0.0-20250519205859-65aec10162f6 |
Per OSV / GitHub Advisories (GHSA-qh58-9v3j-wcjc, GO-2025-3769). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mattermost | mattermost_server | ≥ 9.11.0 < 9.11.16 |
| mattermost | mattermost_server | ≥ 10.5.0 < 10.5.6 |
| mattermost | mattermost_server | ≥ 10.6.0 < 10.6.6 |
| mattermost | mattermost_server | ≥ 10.7.0 < 10.7.3 |
| mattermost | mattermost_server | 10.8.0 |
| mattermost | mattermost_server | 10.8.0 |
| mattermost | mattermost_server | 10.8.0 |
| mattermost | mattermost_server | 10.8.0 |
Official sources
References
Links published by the sources. Open them with care.
- mattermost.com Vendor Advisory