CVE-2025-4981
criticalpriority · track · 0EPSS 0.010 · 63 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (30)
Products and version ranges known to be affected.
- mattermost mattermost server10.5.0 → 10.5.6nvdUScpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
- mattermost mattermost server10.6.0 → 10.6.6nvdUScpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
- mattermost mattermost server10.7.0 → 10.7.3nvdUScpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
- mattermost mattermost server9.11.0 → 9.11.16nvdUScpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
- Go github.com/mattermost/mattermost-server< 0.0.0-20250519205859-65aec10162f6osvUSpkg:golang/github.com/mattermost/mattermost-server
- Go github.com/mattermost/mattermost-server10.5.0+incompatible → 10.5.6+incompatibleosvUSpkg:golang/github.com/mattermost/mattermost-server
- Go github.com/mattermost/mattermost-server10.6.0+incompatible → 10.6.6+incompatibleosvUSpkg:golang/github.com/mattermost/mattermost-server
- Go github.com/mattermost/mattermost-server10.7.0+incompatible → 10.7.3+incompatibleosvUSpkg:golang/github.com/mattermost/mattermost-server
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-qh58-9v3j-wcjcMattermost allows authenticated users to write files to arbitrary locations2025-06-20ghsa · osvUS
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.
- GO-2025-3769Mattermost allows authenticated users to write files to arbitrary locations in github.com/mattermost/mattermost-server2025-07-28vendor · osvUS
Mattermost allows authenticated users to write files to arbitrary locations in github.com/mattermost/mattermost-server
also known as (7)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (4)
External citations — patches, advisories, analysis.
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan