CVE-2025-4981
No exploitation reported by the sources we read.
- Published2025-06-20
- Fixed in10.8.1 · 10.7.3 · 10.6.6 · 10.5.6 · 9.11.16 · 8.0.0-20250519205859-65aec10162f6
- WeaknessCWE-427
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2025-06-2011:15CVE publishedNVD
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 10.8 | ≥ 10.8.0, < 10.8.1 | 10.8.1 | OSV |
| 10.7 | ≥ 10.7.0, < 10.7.3 | 10.7.3 | NVD · OSV |
| 10.6 | ≥ 10.6.0, < 10.6.6 | 10.6.6 | NVD · OSV |
| 10.5 | ≥ 10.5.0, < 10.5.6 | 10.5.6 | NVD · OSV |
| 9.11 | ≥ 9.11.0, < 9.11.16 | 9.11.16 | NVD · OSV |
| 8.0 | < 8.0.0-20250519205859-65aec10162f6 | 8.0.0-20250519205859-65aec10162f6 | OSV |
| 10.8 | = 10.8.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 10.8 | ≥ 10.8.0+incompatible, < 10.8.1+incompatible | 10.8.1+incompatible | OSV |
| 10.7 | ≥ 10.7.0+incompatible, < 10.7.3+incompatible | 10.7.3+incompatible | OSV |
| 10.6 | ≥ 10.6.0+incompatible, < 10.6.6+incompatible | 10.6.6+incompatible | OSV |
| 10.5 | ≥ 10.5.0+incompatible, < 10.5.6+incompatible | 10.5.6+incompatible | OSV |
| 9.11 | ≥ 9.11.0+incompatible, < 9.11.16+incompatible | 9.11.16+incompatible | OSV |
| 0.0 | < 0.0.0-20250519205859-65aec10162f6 | 0.0.0-20250519205859-65aec10162f6 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| — | all versions | no fix published | OSV |
1 more product in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As Mattermost, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Mattermostother versions: not affectedAffected
- ≥ 10.5.0, ≤ 10.5.5no fix statedsemver
- ≥ 9.11.0, ≤ 9.11.15no fix statedsemver
- ≥ 10.8.0, ≤ 10.8.0no fix statedsemver
- ≥ 10.7.0, ≤ 10.7.2no fix statedsemver
- ≥ 10.6.0, ≤ 10.6.5no fix statedsemver
Not affected = 10.9.0 · = 10.5.6 · = 9.11.16
3 more version lines in the CVE record.
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-06-20
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- govulncheck-vulndbopenSUSE:Tumbleweedall versions · fixed in 0.0.20250730T213748-1.1
Fix
- Update Mattermost mattermost server to 10.8.1 · 10.7.3 · 10.6.6 · 10.5.6 · 9.11.16 · 8.0.0-20250519205859-65aec10162f6
Advisories and patches
- mattermost.comVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-19
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionnone2025-06-20
- CNACVSS 3.19.9known since 2026-10-23
- CNAweakness (CWE)CWE-427known since 2026-10-23
- FIRST EPSSEPSS score1.1 %2026-11-18
- OSVaffected packages—
- GitHub AdvisoriesadvisoryCRITICAL2025-06-20
Identifiers
- EUVD-2025-28315same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-qh58-9v3j-wcjcsame flawGitHub Advisory Database · CC-BY-4.0
- GO-2025-3769same flawGo Vulnerability Database · CC-BY-4.0
- openSUSE-SU-2025:15405-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Published
- 2025-06-20
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-qh58-9v3j-wcjc
Frequently asked questions
What is CVE-2025-4981?
Is CVE-2025-4981 actively exploited?
What is the CVSS score for CVE-2025-4981?
Running govulncheck-vulndb? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-qh58-9v3j-wcjc
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- CISA Vulnrichment · CC0-1.0