ghsa-qh58-9v3j-wcjc
Vulnerability from github
Published
2025-06-20 12:30
Modified
2025-06-20 16:38
Severity ?
Summary
Mattermost allows authenticated users to write files to arbitrary locations
Details
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.
{ "affected": [ { "package": { "ecosystem": "Go", "name": "github.com/mattermost/mattermost-server" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "0.0.0-20250519205859-65aec10162f6" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "Go", "name": "github.com/mattermost/mattermost/server/v8" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "8.0.0-20250519205859-65aec10162f6" } ], "type": "ECOSYSTEM" } ] }, { "database_specific": { "last_known_affected_version_range": "\u003c= 10.5.5" }, "package": { "ecosystem": "Go", "name": "github.com/mattermost/mattermost/server/v8" }, "ranges": [ { "events": [ { "introduced": "10.5.0" }, { "fixed": "10.5.6" } ], "type": "ECOSYSTEM" } ] }, { "database_specific": { "last_known_affected_version_range": "\u003c= 9.11.15" }, "package": { "ecosystem": "Go", "name": "github.com/mattermost/mattermost/server/v8" }, "ranges": [ { "events": [ { "introduced": "9.11.0" }, { "fixed": "9.11.16" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "Go", "name": "github.com/mattermost/mattermost/server/v8" }, "ranges": [ { "events": [ { "introduced": "10.8.0" }, { "fixed": "10.8.1" } ], "type": "ECOSYSTEM" } ], "versions": [ "10.8.0" ] }, { "database_specific": { "last_known_affected_version_range": "\u003c= 10.7.2" }, "package": { "ecosystem": "Go", "name": "github.com/mattermost/mattermost/server/v8" }, "ranges": [ { "events": [ { "introduced": "10.7.0" }, { "fixed": "10.7.3" } ], "type": "ECOSYSTEM" } ] }, { "database_specific": { "last_known_affected_version_range": "\u003c= 10.6.5" }, "package": { "ecosystem": "Go", "name": "github.com/mattermost/mattermost/server/v8" }, "ranges": [ { "events": [ { "introduced": "10.6.0" }, { "fixed": "10.6.6" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2025-4981" ], "database_specific": { "cwe_ids": [ "CWE-427" ], "github_reviewed": true, "github_reviewed_at": "2025-06-20T16:38:01Z", "nvd_published_at": "2025-06-20T11:15:20Z", "severity": "CRITICAL" }, "details": "Mattermost versions 10.5.x \u003c= 10.5.5, 9.11.x \u003c= 9.11.15, 10.8.x \u003c= 10.8.0, 10.7.x \u003c= 10.7.2, 10.6.x \u003c= 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.", "id": "GHSA-qh58-9v3j-wcjc", "modified": "2025-06-20T16:38:01Z", "published": "2025-06-20T12:30:53Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-4981" }, { "type": "WEB", "url": "https://github.com/mattermost/mattermost/commit/65aec10162f612d98edf91cc66bf7e781868448b" }, { "type": "PACKAGE", "url": "https://github.com/mattermost/mattermost" }, { "type": "WEB", "url": "https://mattermost.com/security-updates" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H", "type": "CVSS_V3" } ], "summary": "Mattermost allows authenticated users to write files to arbitrary locations" }
Loading...
Loading...
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.