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

Published Jun 20, 2025
·
Updated

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 Software

15 affected componentsFixes available
go/github.com/mattermost/mattermost/server/v8>=10.6.0<=10.6.5
10.6.6
go/github.com/mattermost/mattermost/server/v8>=10.7.0<=10.7.2
10.7.3
go/github.com/mattermost/mattermost/server/v8=10.8.0
10.8.1
go/github.com/mattermost/mattermost/server/v8>=9.11.0<=9.11.15
9.11.16
go/github.com/mattermost/mattermost/server/v8>=10.5.0<=10.5.5
10.5.6
go/github.com/mattermost/mattermost/server/v8<8.0.0-20250519205859-65aec10162f6
8.0.0-20250519205859-65aec10162f6
go/github.com/mattermost/mattermost-server<0.0.0-20250519205859-65aec10162f6
0.0.0-20250519205859-65aec10162f6
Mattermost Mattermost Server>=9.11.0<9.11.16
Mattermost Mattermost Server>=10.5.0<10.5.6
Mattermost Mattermost Server>=10.6.0<10.6.6
Mattermost Mattermost Server>=10.7.0<10.7.3
Mattermost Mattermost Server=10.8.0
Mattermost Mattermost Server=10.8.0-rc1
Mattermost Mattermost Server=10.8.0-rc2
Mattermost Mattermost Server=10.8.0-rc3

Remediation

Information

Update Mattermost to versions 10.9.0, 10.5.6, 9.11.16, 10.8.1, 10.7.3, 10.6.6 or higher.

Event History

Jun 20, 2025
CVE Published
via MITRE·10:27 AM
Data Sourced
via MITRE·10:27 AM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·11:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 AM
Affected Software
Advisory Published
via GitHub·12:30 PM
Data Sourced
via GitHub·12:30 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-4981?

CVE-2025-4981 is considered a high-severity vulnerability due to its ability to allow authenticated users to write files to arbitrary locations on the filesystem.

2

How do I fix CVE-2025-4981?

To fix CVE-2025-4981, upgrade to Mattermost version 10.6.6, 10.7.3, 10.8.1, or 9.11.16 or any version beyond the affected ones.

3

Who is affected by CVE-2025-4981?

CVE-2025-4981 affects Mattermost versions 10.5.x through 10.5.5, 9.11.x through 9.11.15, 10.8.x through 10.8.0, 10.7.x through 10.7.2, and 10.6.x through 10.6.5.

4

What is the impact of CVE-2025-4981?

The impact of CVE-2025-4981 includes unauthorized file uploads that could compromise the security of the Mattermost installation.

5

Is there a workaround for CVE-2025-4981?

There are currently no known workarounds for CVE-2025-4981, so upgrading to a fixed version is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203