CVE-2025-20051 — Vulnerability in...
Mattermost allows reading arbitrary files
Summary
Advisory Timeline
- First published February 24, 2025 (595 days ago).
- Last revised September 10, 2026 — 563 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/mattermost/mattermost/server/v8@v10.3.3
go get github.com/mattermost/mattermost/server/v8@v10.4.2
go get github.com/mattermost/mattermost/server/v8@v8.0.0-20250122165010-4ed702ccff4e
go get github.com/mattermost/mattermost/server/v8@v10.2.3
go get github.com/mattermost/mattermost/server/v8@v9.11.8
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: go (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| github.com/mattermost/mattermost/server/v8 | go | All versions | 10.3.3 |
| github.com/mattermost/mattermost/server/v8 | go | All versions | 10.4.2 |
| github.com/mattermost/mattermost/server/v8 | go | All versions | 8.0.0-20250122165010-4ed702ccff4e |
| github.com/mattermost/mattermost/server/v8 | go | All versions | 10.2.3 |
| github.com/mattermost/mattermost/server/v8 | go | All versions | 9.11.8 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
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
- https://nvd.nist.gov/vuln/detail/CVE-2025-20051ADVISORY
- https://github.com/mattermost/mattermost-plugin-boards/commit/025ce8d363a054473bc002f43f602a4032d38c06WEB
- https://github.com/mattermost/mattermost/commit/4ed702ccff4ec3c9eff832a9b6060f9f4454141dWEB
- https://github.com/mattermost/mattermostPACKAGE
- https://mattermost.com/security-updatesWEB
Frequently Asked Questions
- What is CVE-2025-20051?
- Mattermost allows reading arbitrary files 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-20051?
- CVE-2025-20051 affects github.com/mattermost/mattermost/server/v8. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-20051 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2024-39274CRITICAL
Mattermost failed to properly validate that the channel that comes from the sync message is a shared channel
- CVE-2025-12421CRITICAL
Mattermost fails to to verify the token used during code exchange
- CVE-2024-39777CRITICAL
Mattermost allows unsolicited invites to expose access to local channels
- CVE-2025-4981CRITICAL
Mattermost allows authenticated users to write files to arbitrary locations
- 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