CVE-2025-8023: Path Traversal in Template Upload Allows Uploading Files Outside Target Directory
Vulnerability summary
CVE-2025-8023 is a medium (CVSS 6.8) vulnerability in mattermost. EPSS estimates a 0.41% chance of exploitation in the next 30 days, higher than 35% of scored vulnerabilities.
Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 21-08-2025PublishedVulnerability first disclosed.
- 21-08-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
- NVDNIST4.9MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:NDiffers
EPSS trend
Probability
0.41%
Chance of exploitation in the next 30 days
Percentile
35%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.41% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Github.com/mattermost/mattermost-server2 products
- v5≤ 5.39.5 | All versions (No fix recorded)
- v6≤ 6.7.2 | All versions (No fix recorded)
Mattermost2 products
- mattermost≥ 10.8.0, ≤ 10.8.3 | ≥ 10.5.0, ≤ 10.5.8 | ≥ 9.11.0, ≤ 9.11.17 | ≥ 10.9.0, ≤ 10.9.2
- 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
Github.com/mattermost1 product
- mattermost-server≥ 10.8.0, < 10.8.4 | ≥ 10.5.0, < 10.5.9 | ≥ 9.11.0, < 9.11.18 | ≥ 10.9.0, < 10.9.3 | ≥ 10.9.0+incompatible, < 10.9.3+incompatible
Github.com/mattermost/mattermost/server1 product
- v8< 8.0.0-20250708065844-b38e2eccda18
4 vendors · 6 products