{"id":"GHSA-x67c-v8jr-p29r","summary":"Mattermost Fails to Sanitize Path Traversal Sequences","details":"Mattermost versions 10.8.x \u003c= 10.8.3, 10.5.x \u003c= 10.5.8, 9.11.x \u003c= 9.11.17, 10.9.x \u003c= 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.","aliases":["CVE-2025-8023","GO-2025-3907"],"modified":"2025-08-29T20:59:14Z","published":"2025-08-21T09:30:22Z","database_specific":{"github_reviewed_at":"2025-08-21T16:03:12Z","nvd_published_at":"2025-08-21T08:15:30Z","cwe_ids":["CWE-22"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8023"},{"type":"PACKAGE","url":"https://github.com/mattermost/mattermost"},{"type":"WEB","url":"https://mattermost.com/security-updates"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2025-3907"}],"affected":[{"package":{"name":"github.com/mattermost/mattermost-server","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"10.8.0"},{"fixed":"10.8.4"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 10.8.3","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-x67c-v8jr-p29r/GHSA-x67c-v8jr-p29r.json"}},{"package":{"name":"github.com/mattermost/mattermost-server","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"10.5.0"},{"fixed":"10.5.9"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 10.5.8","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-x67c-v8jr-p29r/GHSA-x67c-v8jr-p29r.json"}},{"package":{"name":"github.com/mattermost/mattermost-server","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"9.11.0"},{"fixed":"9.11.18"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 9.11.17","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-x67c-v8jr-p29r/GHSA-x67c-v8jr-p29r.json"}},{"package":{"name":"github.com/mattermost/mattermost-server","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"10.9.0"},{"fixed":"10.9.3"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 10.9.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-x67c-v8jr-p29r/GHSA-x67c-v8jr-p29r.json"}},{"package":{"name":"github.com/mattermost/mattermost/server/v8","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost/server/v8"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"8.0.0-20250708065844-b38e2eccda18"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-x67c-v8jr-p29r/GHSA-x67c-v8jr-p29r.json"}},{"package":{"name":"github.com/mattermost/mattermost-server/v5","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server/v5"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"5.39.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-x67c-v8jr-p29r/GHSA-x67c-v8jr-p29r.json"}},{"package":{"name":"github.com/mattermost/mattermost-server/v6","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server/v6"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"6.7.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-x67c-v8jr-p29r/GHSA-x67c-v8jr-p29r.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N"}]}