CVE-2025-4981 — Vulnerability in...
Mattermost allows authenticated users to write files to arbitrary locations
Summary
Advisory Timeline
- First published June 20, 2025 (479 days ago).
- Last revised July 28, 2025 — 38 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/mattermost/mattermost/server/v8@v9.11.16
go get github.com/mattermost/mattermost/server/v8@v10.6.6
go get github.com/mattermost/mattermost/server/v8@v10.7.3
go get github.com/mattermost/mattermost-server@v0.0.0-20250519205859-65aec10162f6
go get github.com/mattermost/mattermost/server/v8@v8.0.0-20250519205859-65aec10162f6
go get github.com/mattermost/mattermost/server/v8@v10.8.1
go get github.com/mattermost/mattermost/server/v8@v10.5.6
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (7)
Affects 1 ecosystem: go (2).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| github.com/mattermost/mattermost/server/v8 | go | All versions | 9.11.16 |
| github.com/mattermost/mattermost/server/v8 | go | All versions | 10.6.6 |
| github.com/mattermost/mattermost/server/v8 | go | All versions | 10.7.3 |
| github.com/mattermost/mattermost-server | go | All versions | 0.0.0-20250519205859-65aec10162f6 |
| github.com/mattermost/mattermost/server/v8 | go | All versions | 8.0.0-20250519205859-65aec10162f6 |
| github.com/mattermost/mattermost/server/v8 | go | 10.8.0 | 10.8.1 |
| github.com/mattermost/mattermost/server/v8 | go | All versions | 10.5.6 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-427
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2025-4981?
- Mattermost allows authenticated users to write files to arbitrary locations This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
- How do I check if my project is affected by CVE-2025-4981?
- CVE-2025-4981 affects github.com/mattermost/mattermost/server/v8 and github.com/mattermost/mattermost-server. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-4981 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2025-12419CRITICAL
Mattermost fails to properly validate OAuth state tokens during OpenID Connect authentication
- CVE-2025-12421CRITICAL
Mattermost fails to to verify the token used during code exchange
- CVE-2026-7387HIGH
Mattermost doesn't require role-management authorization when setting the scheme_admin flag on group syncable link and patch endpoints
- CVE-2025-58073HIGH
Mattermost has a Missing Authorization vulnerability
- CVE-2026-6961HIGH
Mattermost doesn't sanitize FileInfo.Name received from federated peers during shared channel file sync
- CVE-2026-6346HIGH
Mattermost doesn't sanitize sensitive configuration fields before including them in support packet generation
- CVE-2026-24458HIGH
Mattermost fails to properly handle very long passwords
- CVE-2025-9079HIGH
Mattermost Path Traversal vulnerability
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies