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

- Severity: Medium 6.8 (CVSS:3.1, scored by Mattermost) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Published: 2025-08-21T07:51:37.130Z
- Modified: 2026-06-17T10:06:09.590Z
- Also known as: GHSA-x67c-v8jr-p29r, GO-2025-3907
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Mattermost

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

(As written by CVE List.)

## Affected

- Mattermost Mattermost: from 10.8.0 up to 10.8.3; from 10.5.0 up to 10.5.8; from 9.11.0 up to 9.11.17; from 10.9.0 up to 10.9.2 (not affected: 10.10.0; 10.8.4; 10.5.9; 9.11.18; 10.9.3)
- github.com/mattermost/mattermost-server (Go): from 10.8.0 before 10.8.4; from 10.5.0 before 10.5.9; from 9.11.0 before 9.11.18; from 10.9.0 before 10.9.3; from 9.11.0+incompatible before 9.11.18+incompatible; from 10.5.0+incompatible before 10.5.9+incompatible; from 10.8.0+incompatible before 10.8.4+incompatible; from 10.9.0+incompatible before 10.9.3+incompatible
- github.com/mattermost/mattermost/server/v8 (Go): before 8.0.0-20250708065844-b38e2eccda18
- github.com/mattermost/mattermost-server/v5 (Go): up to 5.39.5; all versions
- github.com/mattermost/mattermost-server/v6 (Go): up to 6.7.2; all versions
- mattermost mattermost_server: from 9.11.0 before 9.11.18; from 10.5.0 before 10.5.9; from 10.8.0 before 10.8.4; from 10.9.0 before 10.9.3

## Every score

- Mattermost: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://mattermost.com/security-updates> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-8023> (advisory)
- <https://github.com/mattermost/mattermost> (package)
- <https://pkg.go.dev/vuln/GO-2025-3907> (web)
- <https://github.com/advisories/GHSA-x67c-v8jr-p29r> (advisory)

## Sources

- CVE List: [CVE-2025-8023](https://www.cve.org/CVERecord?id=CVE-2025-8023), CVE Terms of Use, modified 2025-08-21
- GitHub Advisory Database: [GHSA-x67c-v8jr-p29r](https://github.com/advisories/GHSA-x67c-v8jr-p29r), CC-BY-4.0, modified 2025-08-29
- Go Vulnerability Database: [GO-2025-3907](https://pkg.go.dev/vuln/GO-2025-3907), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-8023](https://nvd.nist.gov/vuln/detail/CVE-2025-8023), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-8023 · Whole record: https://cve.day/CVE-2025-8023.json · Rebuilt by cve.day 2026-11-25T22:59:03.463Z
