Skip to content

CVE-2025-8023 Path Traversal in Template Upload Allows Uploading Files Outside Target Directory

MediumCVSS 4.9 EPSS 0.71%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

Mattermost versions 10.8.x <= 10.8.3, 10.5.x <= 10.5.8, 9.11.x <= 9.11.17, 10.9.x <= 10.9.2 fails to sanitize path traversal sequences in template file destination paths, which allows a system admin to perform path traversal attacks via malicious path components, potentially enabling malicious file placement outside intended directories.

Upgrade path

4 packages: 3 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
Mattermost github.com/mattermost/mattermost-server/v6(Go) <= 5.39.5; <= 6.7.2; >= 9.11.0+incompatible, < 9.11.18+incompatible; >= 9.11.0, < 9.11.18 +11 more 9.11.18, 9.11.18+incompatible, 10.5.9, 10.5.9+incompatible, 10.8.4, 10.8.4+incompatible, 10.9.3, 10.9.3+incompatible Partially fixed
Mattermost >= 9.11.0, <= 9.11.17; >= 10.5.0, <= 10.5.8; >= 10.8.0, <= 10.8.3; >= 10.9.0, <= 10.9.2 after 9.11.17, 10.5.8, 10.8.3, 10.9.2 Fixed
Mattermost github.com/mattermost/mattermost/server/v8(Go) < 8.0.0-20250708065844-b38e2eccda18 8.0.0-20250708065844-b38e2eccda18 Fixed
mattermost server >= 9.11.0, < 9.11.18; >= 10.5.0, < 10.5.9; >= 10.8.0, < 10.8.4; >= 10.9.0, < 10.9.3 9.11.18, 10.5.9, 10.8.4, 10.9.3 Fixed

Affected products

ProductAffected versionsFixed in
Mattermost github.com/mattermost/mattermost-server/v6(Go) >= 10.8.0, < 10.8.4 10.8.4
Mattermost github.com/mattermost/mattermost-server/v6(Go) >= 10.5.0, < 10.5.9 10.5.9
Mattermost github.com/mattermost/mattermost-server/v6(Go) >= 9.11.0, < 9.11.18 9.11.18
Mattermost github.com/mattermost/mattermost-server/v6(Go) >= 10.9.0, < 10.9.3 10.9.3
Mattermost github.com/mattermost/mattermost/server/v8(Go) < 8.0.0-20250708065844-b38e2eccda18 8.0.0-20250708065844-b38e2eccda18
Mattermost github.com/mattermost/mattermost-server/v6(Go) <= 5.39.5 No fix listed
Mattermost github.com/mattermost/mattermost-server/v6(Go) <= 6.7.2 No fix listed
Mattermost github.com/mattermost/mattermost-server/v6(Go) >= 9.11.0+incompatible, < 9.11.18+incompatible 9.11.18+incompatible
Mattermost github.com/mattermost/mattermost-server/v6(Go) >= 10.5.0+incompatible, < 10.5.9+incompatible 10.5.9+incompatible
Mattermost github.com/mattermost/mattermost-server/v6(Go) >= 10.8.0+incompatible, < 10.8.4+incompatible 10.8.4+incompatible
Mattermost github.com/mattermost/mattermost-server/v6(Go) >= 10.9.0+incompatible, < 10.9.3+incompatible 10.9.3+incompatible
Mattermost github.com/mattermost/mattermost-server/v6(Go) All versions No fix listed
Mattermost github.com/mattermost/mattermost-server/v6(Go) >= 10.8.0, <= 10.8.3 No fix listed
Mattermost github.com/mattermost/mattermost-server/v6(Go) >= 10.5.0, <= 10.5.8 No fix listed
Mattermost github.com/mattermost/mattermost-server/v6(Go) >= 9.11.0, <= 9.11.17 No fix listed
Mattermost github.com/mattermost/mattermost-server/v6(Go) >= 10.9.0, <= 10.9.2 No fix listed
Mattermost >= 10.8.0, <= 10.8.3 No fix listed
Mattermost >= 10.5.0, <= 10.5.8 No fix listed
Mattermost >= 9.11.0, <= 9.11.17 No fix listed
Mattermost >= 10.9.0, <= 10.9.2 No fix listed
mattermost server >= 9.11.0, < 9.11.18 9.11.18
mattermost server >= 10.5.0, < 10.5.9 10.5.9
mattermost server >= 10.8.0, < 10.8.4 10.8.4
mattermost server >= 10.9.0, < 10.9.3 10.9.3

References