{"id":"CVE-2025-6465","aliases":["EUVD-2025-25460","GHSA-pj6f-rc94-gw53","GO-2025-3910"],"status":"published","title":"Path traversal in image upload with preview overwrite","description":"Mattermost versions 10.8.x \u003c= 10.8.3, 10.5.x \u003c= 10.5.8, 10.10.x \u003c= 10.10.0, 10.9.x \u003c= 10.9.3 fail to sanitize file names which allows users with file upload permission to overwrite file attachment thumbnails via path traversal in file streaming APIs.","severity":{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00765,"percentile":0.55769,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2025-08-21T17:01:42Z","modified":"2026-11-07T02:48:21Z","fixes":[{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server","fixed_in":["10.8.4","10.5.9","10.9.4","10.10.1","10.5.9+incompatible","10.8.4+incompatible","10.9.4+incompatible","10.10.1+incompatible"],"sources":["ghsa","osv"]},{"ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","fixed_in":["8.0.0-20250708173752-d6b35c41f0ae5"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.8.0"},{"last_affected":"10.8.3"},{"fixed":"10.8.4"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.5.0"},{"last_affected":"10.5.8"},{"fixed":"10.5.9"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.9.0"},{"last_affected":"10.9.3"},{"fixed":"10.9.4"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.10.0"},{"last_affected":"10.10.0"},{"fixed":"10.10.1"}]}],"versions":["10.10.0"]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.0.0-20250708173752-d6b35c41f0ae5"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server","ranges":[{"type":"SEMVER","events":[{"introduced":"10.8.0"},{"fixed":"10.8.4"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server","ranges":[{"type":"SEMVER","events":[{"introduced":"10.5.0"},{"fixed":"10.5.9"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server","ranges":[{"type":"SEMVER","events":[{"introduced":"10.9.0"},{"fixed":"10.9.4"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server","ranges":[{"type":"SEMVER","events":[{"introduced":"10.10.0"},{"fixed":"10.10.1"}]}],"versions":["10.10.0"]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"8.0.0-20250708173752-d6b35c41f0ae5"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server","ranges":[{"type":"SEMVER","events":[{"introduced":"10.5.0+incompatible"},{"fixed":"10.5.9+incompatible"},{"introduced":"10.8.0+incompatible"},{"fixed":"10.8.4+incompatible"},{"introduced":"10.9.0+incompatible"},{"fixed":"10.9.4+incompatible"},{"introduced":"10.10.0+incompatible"},{"fixed":"10.10.1+incompatible"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}],"products":[{"vendor":"mattermost","product":"mattermost"},{"vendor":"mattermost","product":"mattermost_server"}],"references":[{"url":"https://mattermost.com/security-updates","tags":["Vendor Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6465","tags":["advisory"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3906","tags":["web"]},{"url":"https://github.com/advisories/GHSA-pj6f-rc94-gw53","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6465.json","tags":["advisory"]},{"url":"https://github.com/mattermost/mattermost","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-6465","title":"Path traversal in image upload with preview overwrite","description":"Mattermost versions 10.8.x \u003c= 10.8.3, 10.5.x \u003c= 10.5.8, 10.10.x \u003c= 10.10.0, 10.9.x \u003c= 10.9.3 fail to sanitize file names which allows users with file upload permission to overwrite file attachment thumbnails via path traversal in file streaming APIs.","status":"published","published":"2025-08-21T17:01:42.866Z","modified":"2025-08-21T17:30:45.951Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:32:40.072186Z"}],"euvd":[{"id":"EUVD-2025-25460","description":"Mattermost versions 10.8.x \u003c= 10.8.3, 10.5.x \u003c= 10.5.8, 10.10.x \u003c= 10.10.0, 10.9.x \u003c= 10.9.3 fail to sanitize file names which allows users with file upload permission to overwrite file attachment thumbnails via path traversal in file streaming APIs.","status":"published","published":"2025-08-21T17:01:42Z","modified":"2025-08-21T17:30:45Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T20:31:55.037702Z"}],"ghsa":[{"id":"GHSA-pj6f-rc94-gw53","title":"Mattermost Fails to Sanitize File Names","description":"Mattermost versions 10.8.x \u003c= 10.8.3, 10.5.x \u003c= 10.5.8, 10.10.x \u003c= 10.10.0, 10.9.x \u003c= 10.9.3 fail to sanitize file names which allows users with file upload permission to overwrite file attachment thumbnails via path traversal in file streaming APIs.","status":"published","published":"2025-08-21T18:31:29Z","modified":"2025-08-29T21:00:28Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:38:55.953734Z"}],"nvd":[{"id":"CVE-2025-6465","description":"Mattermost versions 10.8.x \u003c= 10.8.3, 10.5.x \u003c= 10.5.8, 10.10.x \u003c= 10.10.0, 10.9.x \u003c= 10.9.3 fail to sanitize file names which allows users with file upload permission to overwrite file attachment thumbnails via path traversal in file streaming APIs.","status":"published","published":"2025-08-21T17:15:32.707Z","modified":"2026-06-17T10:01:57.02Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:11:25.261243Z"}],"osv":[{"id":"CVE-2025-6465","title":"Path traversal in image upload with preview overwrite","description":"Mattermost versions 10.8.x \u003c= 10.8.3, 10.5.x \u003c= 10.5.8, 10.10.x \u003c= 10.10.0, 10.9.x \u003c= 10.9.3 fail to sanitize file names which allows users with file upload permission to overwrite file attachment thumbnails via path traversal in file streaming APIs.","status":"published","published":"2025-08-21T17:01:42.866Z","modified":"2026-11-07T02:48:21.175256871Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-07T03:07:58.334112Z"},{"id":"GHSA-pj6f-rc94-gw53","title":"Mattermost Fails to Sanitize File Names","description":"Mattermost versions 10.8.x \u003c= 10.8.3, 10.5.x \u003c= 10.5.8, 10.10.x \u003c= 10.10.0, 10.9.x \u003c= 10.9.3 fail to sanitize file names which allows users with file upload permission to overwrite file attachment thumbnails via path traversal in file streaming APIs.","status":"published","published":"2025-08-21T18:31:29Z","modified":"2025-08-29T21:00:27Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:53.244788Z"},{"id":"GO-2025-3910","title":"Mattermost Fails to Sanitize File Names in github.com/mattermost/mattermost-server","description":"Mattermost Fails to Sanitize File Names in github.com/mattermost/mattermost-server.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/mattermost/mattermost/server/v8 before v8.0.0-20250708173752-d6b35c41f0ae5.","status":"published","published":"2025-08-29T14:52:20Z","modified":"2026-03-03T04:57:26.969471Z","updated_at":"2026-11-02T15:47:01.728182Z"}]}}
