Vulnerability · Published Aug 21, 2025 · Assigned by Mattermost

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

Medium 6.8

In plain English

A medium-severity path traversal in Mattermost from Mattermost. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)0.4%top 64.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/mattermost/mattermost-server10.5.9+incompatible, 10.8.4+incompatible, 10.9.3+incompatible, 9.11.18+incompatibleGO-2025-3907
Gogithub.com/mattermost/mattermost-server10.8.4GHSA-x67c-v8jr-p29r
Gogithub.com/mattermost/mattermost-server10.5.9GHSA-x67c-v8jr-p29r
Gogithub.com/mattermost/mattermost-server9.11.18GHSA-x67c-v8jr-p29r
Gogithub.com/mattermost/mattermost-server10.9.3GHSA-x67c-v8jr-p29r
Gogithub.com/mattermost/mattermost-server/v5no fix listedGHSA-x67c-v8jr-p29r
Gogithub.com/mattermost/mattermost-server/v5no fix listedGO-2025-3907
Gogithub.com/mattermost/mattermost-server/v6no fix listedGO-2025-3907
Gogithub.com/mattermost/mattermost-server/v6no fix listedGHSA-x67c-v8jr-p29r
Gogithub.com/mattermost/mattermost/server/v88.0.0-20250708065844-b38e2eccda18GHSA-x67c-v8jr-p29r
Gogithub.com/mattermost/mattermost/server/v88.0.0-20250708065844-b38e2eccda18GO-2025-3907

Affected products (as reported)

VendorProductVersions
Mattermost Mattermost 10.8.0 – through 10.8.310.5.0 – through 10.5.89.11.0 – through 9.11.1710.9.0 – through 10.9.2

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N

References