{"id":"CVE-2025-8023","published":"2025-08-21T07:51:37Z","modified":"2025-08-21T14:50:55Z","title":"Path Traversal in Template Upload Allows Uploading Files Outside Target Directory","vendor":"Mattermost","product":"Mattermost","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00477,"percentile":0.42074,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://mattermost.com/security-updates","tags":[]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":8.41},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"mattermost","affectedVersions":[{"vendor":"Mattermost","product":"Mattermost","versions":[">= 10.8.0, <= 10.8.3",">= 10.5.0, <= 10.5.8",">= 9.11.0, <= 9.11.17",">= 10.9.0, <= 10.9.2"]}],"fixedVersions":[{"vendor":"Mattermost","product":"Mattermost","versions":["10.10.0","10.8.4","10.5.9","9.11.18","10.9.3"]}],"solutions":{"items":["Update Mattermost to versions 10.10.0, 10.8.4, 10.5.9, 9.11.18, 10.9.3 or higher."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-21T14:50:47.920308Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server","vulnerableRanges":[">=10.8.0, <10.8.4",">=10.5.0, <10.5.9",">=9.11.0, <9.11.18",">=10.9.0, <10.9.3",">=9.11.0+incompatible, <9.11.18+incompatible",">=10.5.0+incompatible, <10.5.9+incompatible",">=10.8.0+incompatible, <10.8.4+incompatible",">=10.9.0+incompatible, <10.9.3+incompatible"],"patched":["10.8.4","10.5.9","9.11.18","10.9.3","9.11.18+incompatible","10.5.9+incompatible","10.8.4+incompatible","10.9.3+incompatible"],"from":["GHSA-x67c-v8jr-p29r","GO-2025-3907"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","vulnerableRanges":["<8.0.0-20250708065844-b38e2eccda18"],"patched":["8.0.0-20250708065844-b38e2eccda18"],"from":["GHSA-x67c-v8jr-p29r","GO-2025-3907"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","vulnerableRanges":["<=5.39.5","all versions"],"patched":[],"from":["GHSA-x67c-v8jr-p29r","GO-2025-3907"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","vulnerableRanges":["<=6.7.2","all versions"],"patched":[],"from":["GHSA-x67c-v8jr-p29r","GO-2025-3907"],"provenance":"source"}],"summary":{"text":"Mattermost's template upload functionality fails to sanitize path traversal sequences in template file destination paths, affecting the Mattermost product in versions 10.8.x up to 10.8.3, 10.5.x up to 10.5.8, 9.11.x up to 9.11.17, and 10.9.x up to 10.9.2. An attacker who holds system administrator privileges on the network-reachable instance, with no user interaction required, can supply malicious path components to place files outside the intended directories.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:56Z"},"euvd":{"id":"EUVD-2025-25412","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-6233","published":"2025-07-18","fixed":"10.8.2+incompatible","kev":false},{"cve":"CVE-2025-36530","published":"2025-08-21","fixed":"10.9.2+incompatible","kev":false,"link":{"from":"CVE-2025-36530","to":"CVE-2025-8023","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/mattermost/mattermost-server","fromFixed":"10.9.2+incompatible","toFixed":"10.9.3","daysApart":0}]}},{"cve":"CVE-2025-47870","published":"2025-08-21","fixed":"10.9.3+incompatible","kev":false},{"cve":"CVE-2025-8023","published":"2025-08-21","fixed":"10.9.3+incompatible","kev":false},{"cve":"CVE-2025-49222","published":"2025-08-21","fixed":"10.10.1+incompatible","kev":false,"link":{"from":"CVE-2025-8023","to":"CVE-2025-49222","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/mattermost/mattermost/server/v8","fromFixed":"8.0.0-20250708065844-b38e2eccda18","toFixed":"8.0.0-20250708173752-d6b35c41f0ae5","daysApart":0}]}},{"cve":"CVE-2025-6465","published":"2025-08-21","fixed":"10.10.1+incompatible","kev":false,"link":{"from":"CVE-2025-8023","to":"CVE-2025-6465","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/mattermost/mattermost/server/v8","fromFixed":"8.0.0-20250708065844-b38e2eccda18","toFixed":"8.0.0-20250708173752-d6b35c41f0ae5","daysApart":0}]}},{"cve":"CVE-2025-8402","published":"2025-08-21","fixed":"10.10.1+incompatible","kev":false,"link":{"from":"CVE-2025-8023","to":"CVE-2025-8402","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/mattermost/mattermost/server/v8","fromFixed":"8.0.0-20250708065844-b38e2eccda18","toFixed":"8.0.0-20250708173752-d6b35c41f0ae5","daysApart":0}]}}],"package":"Go:github.com/mattermost/mattermost-server"}}