CVE-2025-20051: Mattermost allows reading arbitrary files
Mattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to properly validate input when patching and duplicating a board, which allows a user to read any arbitrary file on the system via duplicating a specially crafted block in Boards.
Published Feb 24, 2025
Affected packages
github.com/mattermost/mattermost/server/v8
- Ecosystem
- Go
- Affected
- < 8.0.0-20250122165010-4ed702ccff4e
- Fixed in
- 8.0.0-20250122165010-4ed702ccff4e
- Check
go list -m github.com/mattermost/mattermost/server/v8
github.com/mattermost/mattermost/server/v8
- Ecosystem
- Go
- Affected
- >= 9.11.0-rc1, < 9.11.8
- Fixed in
- 9.11.8
- Check
go list -m github.com/mattermost/mattermost/server/v8
github.com/mattermost/mattermost/server/v8
- Ecosystem
- Go
- Affected
- >= 10.2.0-rc1, < 10.2.3
- Fixed in
- 10.2.3
- Check
go list -m github.com/mattermost/mattermost/server/v8
github.com/mattermost/mattermost/server/v8
- Ecosystem
- Go
- Affected
- >= 10.3.0-rc1, < 10.3.3
- Fixed in
- 10.3.3
- Check
go list -m github.com/mattermost/mattermost/server/v8
github.com/mattermost/mattermost/server/v8
- Ecosystem
- Go
- Affected
- >= 10.4.0-rc1, < 10.4.2
- Fixed in
- 10.4.2
- Check
go list -m github.com/mattermost/mattermost/server/v8
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Mattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to properly validate input when patching and duplicating a board, which allows a user to read any arbitrary file on the system via duplicating a specially crafted block in Boards.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-20051
- https://mattermost.com/security-updates
- https://github.com/mattermost/mattermost-plugin-boards/commit/025ce8d363a054473bc002f43f602a4032d38c06
- https://github.com/mattermost/mattermost/commit/4ed702ccff4ec3c9eff832a9b6060f9f4454141d
- https://github.com/advisories/GHSA-v469-7wp6-7cvp
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2025-12419
Mattermost fails to properly validate OAuth state tokens during OpenID Connect authentication
critical9.9Nov 27, 2025CVE-2025-12421
Mattermost fails to to verify the token used during code exchange
critical9.9Nov 27, 2025CVE-2025-4981
Mattermost allows authenticated users to write files to arbitrary locations
critical9.9Jun 20, 2025CVE-2025-25279
Mattermost allows reading arbitrary files related to importing boards
critical9.9Feb 24, 2025CVE-2024-39274
Mattermost failed to properly validate that the channel that comes from the sync message is a shared channel
critical8.7Aug 1, 2024CVE-2024-39777
Mattermost allows unsolicited invites to expose access to local channels
critical8.7Aug 1, 2024
