CVE-2025-4981 | Path Traversal Leading to RCE by Any Authenticated Mattermost User

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.

Published: 2025-06-20 Last update: 2025-07-08 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-4981 is rated High Risk (69.4/100): CVSS Critical severity, with medium exploitation likelihood (EPSS 1.69%). Core evidence: EPSS rose +1.06% over the last day, indicating growing attacker interest. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2025-4981

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-04-16 0.63% 1.69% +1.06%
2 2026-03-06 0.47% 0.63% +0.16%
3 2026-01-24 0.47%

Full EPSS history (10 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-4981

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.9 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.1 6.0 [email protected]

Weakness enumeration for CVE-2025-4981

GitHub Security Advisory for CVE-2025-4981

GHSA-qh58-9v3j-wcjc · Severity: critical · Ecosystem: go — Mattermost allows authenticated users to write files to arbitrary locations

Affected software / configurations for CVE-2025-4981

Vendor Product Version Raw CPE
mattermost mattermost_server >= 9.11.0, < 9.11.16 cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
mattermost mattermost_server >= 10.5.0, < 10.5.6 cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
mattermost mattermost_server >= 10.6.0, < 10.6.6 cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
mattermost mattermost_server >= 10.7.0, < 10.7.3 cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
mattermost mattermost_server 10.8.0 cpe:2.3:a:mattermost:mattermost_server:10.8.0:-:*:*:*:*:*:*
mattermost mattermost_server 10.8.0 cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc1:*:*:*:*:*:*
mattermost mattermost_server 10.8.0 cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc2:*:*:*:*:*:*
mattermost mattermost_server 10.8.0 cpe:2.3:a:mattermost:mattermost_server:10.8.0:rc3:*:*:*:*:*:*

References for CVE-2025-4981

URL Tags
https://mattermost.com/security-updates Vendor Advisory
cvelogic Threat Intelligence