{"id":"GHSA-gq3r-5833-5532","summary":"Mattermost Fails to Validate File Paths","details":"Mattermost versions 10.9.x \u003c= 10.9.1, 10.8.x \u003c= 10.8.3, 10.5.x \u003c= 10.5.8, 9.11.x \u003c= 9.11.17 fail to properly validate file paths during plugin import operations which allows restricted admin users to install unauthorized custom plugins via path traversal in the import functionality, bypassing plugin signature enforcement and marketplace restrictions.","aliases":["CVE-2025-36530","GO-2025-3901"],"modified":"2025-08-29T20:47:38Z","published":"2025-08-21T09:30:21Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2025-08-21T15:02:22Z","nvd_published_at":"2025-08-21T07:15:29Z","cwe_ids":["CWE-22"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-36530"},{"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-3901"}],"affected":[{"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.2"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 10.9.1","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-gq3r-5833-5532/GHSA-gq3r-5833-5532.json"}},{"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-gq3r-5833-5532/GHSA-gq3r-5833-5532.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-gq3r-5833-5532/GHSA-gq3r-5833-5532.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-gq3r-5833-5532/GHSA-gq3r-5833-5532.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-20250619095651-9dd0b3943e55"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-gq3r-5833-5532/GHSA-gq3r-5833-5532.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.11.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-gq3r-5833-5532/GHSA-gq3r-5833-5532.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-gq3r-5833-5532/GHSA-gq3r-5833-5532.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"}]}