Every CVE Search/ Get API key

CVE-2025-8023

Path Traversal in Template Upload Allows Uploading Files Outside Target Directory

6.8 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
High
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
None

Exploit likelihood

0.41%Up 0.4 points since Aug 21, 2025
90%50%10%1%

What each source reports

CVE List Score used 6.8

Path Traversal in Template Upload Allows Uploading Files Outside Target Directory

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.

Record
CVE-2025-8023
CVSS 3.1
6.8 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
Weakness
CWE-22
Updated
2026-11-02
EUVDEUVD-2025-25412 6.8

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.

Record
EUVD-2025-25412
CVSS 3.1
6.8 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-x67c-v8jr-p29r 6.8

Mattermost Fails to Sanitize Path Traversal Sequences

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.

Record
GHSA-x67c-v8jr-p29r
CVSS 3.1
6.8 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
Weakness
CWE-22
Updated
2026-11-02
NVD 6.8

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.

Record
CVE-2025-8023
CVSS 3.1
6.8 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
CVSS 3.1
4.9 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-22
Updated
2026-11-02
OSV 6.8

Path Traversal in Template Upload Allows Uploading Files Outside Target Directory

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.

Record
CVE-2025-8023
CVSS 3.1
6.8 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
Weakness
CWE-22
Updated
2026-11-07
OSVGHSA-x67c-v8jr-p29r 6.8

Mattermost Fails to Sanitize Path Traversal Sequences

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.

Record
GHSA-x67c-v8jr-p29r
CVSS 3.1
6.8 MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
Weakness
CWE-22
Updated
2026-11-02
OSVGO-2025-3907 No score

Mattermost Fails to Sanitize Path Traversal Sequences in github.com/mattermost/mattermost-server

Mattermost Fails to Sanitize Path Traversal Sequences in github.com/mattermost/mattermost-server

Record
GO-2025-3907
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
github.com/mattermost/mattermost-server
Go
10.8.0 to 10.8.3
10.8.4
github.com/mattermost/mattermost-server
Go
10.5.0 to 10.5.8
10.5.9
github.com/mattermost/mattermost-server
Go
9.11.0 to 9.11.17
9.11.18
github.com/mattermost/mattermost-server
Go
10.9.0 to 10.9.2
10.9.3
github.com/mattermost/mattermost/server/v8
Go
before 8.0.0-20250708065844-b38e2eccda18
8.0.0-20250708065844-b38e2eccda18
github.com/mattermost/mattermost-server/v5
Go
through 5.39.5 None known
github.com/mattermost/mattermost-server/v6
Go
through 6.7.2 None known
github.com/mattermost/mattermost-server
Go
10.8.0 up to 10.8.4
10.8.4
github.com/mattermost/mattermost-server
Go
10.5.0 up to 10.5.9
10.5.9
github.com/mattermost/mattermost-server
Go
9.11.0 up to 9.11.18
9.11.18
Show 4 moreShow less
Affected packages
PackageAffectedFixed
github.com/mattermost/mattermost-server
Go
10.9.0 up to 10.9.3
10.9.3
github.com/mattermost/mattermost-server
Go
9.11.0+incompatible up to 9.11.18+incompatible, 10.5.0+incompatible up to 10.5.9+incompatible, 10.8.0+incompatible up to 10.8.4+incompatible, 10.9.0+incompatible up to 10.9.3+incompatible
9.11.18+incompatible10.5.9+incompatible10.8.4+incompatible10.9.3+incompatible
github.com/mattermost/mattermost-server/v5
Go
All versions None known
github.com/mattermost/mattermost-server/v6
Go
All versions None known

History

History
RecordedChangedSources
factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2025-8023 is a medium vulnerability (CVSS 6.8) in Mattermost, published August 21, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.41%, the 35th percentile. Fixed in github.com/mattermost/mattermost-server 10.8.4.

References

MoveEnter Open