CVE-2025-4981
CVE-2025-4981 is a critical-severity vulnerability in Mattermost Mattermost Server with a CVSS 3.x base score of 9.9. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-427.
Key facts
- Severity: Critical (CVSS 3.x base score 9.9)
- EPSS exploit prediction: 1% (48th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-28315
- Weakness: CWE-427
- Affected product: Mattermost Mattermost Server
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2025-4981?
- 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.
- How severe is CVE-2025-4981?
- CVE-2025-4981 has a CVSS 3.x base score of 9.9, rated critical severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2025-4981 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (48th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-4981?
- CVE-2025-4981 primarily affects Mattermost Mattermost Server. In total, 5 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2025-4981?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- Does CVE-2025-4981 have an EU (EUVD) identifier?
- Yes. CVE-2025-4981 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-28315.
- When was CVE-2025-4981 published?
- CVE-2025-4981 was published on 2025-06-20 and last updated on 2026-06-17.
References
Affected products (5)
- cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
- cpe:2.3:a:mattermost:mattermost_server:10.8.0:-:*:*:*:*:*:*
- cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc1:*:*:*:*:*:*
- cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc2:*:*:*:*:*:*
- cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc3:*:*:*:*:*:*
More vulnerabilities in Mattermost Mattermost Server
- CVE-2025-12421 — Critical (CVSS 9.9): Mattermost versions 11.0.x <= 11.0.2, 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12 fail to to verify that…
- CVE-2025-12419 — Critical (CVSS 9.9): Mattermost versions 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12, 11.0.x <= 11.0.3 fail to properly…
- CVE-2025-25279 — Critical (CVSS 9.9): 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…
- CVE-2025-20051 — Critical (CVSS 9.9): 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…
- CVE-2017-18920 — Critical (CVSS 9.8): An issue was discovered in Mattermost Server before 3.6.2. The WebSocket feature does not follow the Same Origin Policy.
- CVE-2017-18915 — Critical (CVSS 9.8): An issue was discovered in Mattermost Server before 3.8.2, 3.7.5, and 3.6.7. After a restart of a server, an attacker…
All CVEs affecting Mattermost Mattermost Server →
Other CWE-427 (Uncontrolled Search Path Element) vulnerabilities
- CVE-2025-69599 — Critical (CVSS 9.8): RayVentory Scan Engine through 12.6 Update 8 allows attackers to gain privileges if they control the value of the PATH…
- CVE-2019-25268 — Critical (CVSS 9.8): NREL BEopt 2.8.0.0 contains a DLL hijacking vulnerability that allows attackers to load arbitrary libraries by tricking…
- CVE-2023-53959 — Critical (CVSS 9.8): FileZilla Client 3.63.1 contains a DLL hijacking vulnerability that allows attackers to execute malicious code by…
- CVE-2025-65741 — Critical (CVSS 9.8): Sublime Text 3 Build 3208 or prior for MacOS is vulnerable to Dylib Injection. An attacker could compile a .dylib file…
- CVE-2024-23054 — Critical (CVSS 9.8): An issue in Plone Docker Official Image 5.2.13 (5221) open-source software that could allow for remote code execution…
- CVE-2023-31543 — Critical (CVSS 9.8): A dependency confusion in pipreqs v0.3.0 to v0.4.11 allows attackers to execute arbitrary code via uploading a crafted…
Browse all CWE-427 (Uncontrolled Search Path Element) vulnerabilities →