{"id":"CVE-2025-58075","published":"2025-10-16T08:20:06Z","modified":"2026-02-26T16:57:27Z","title":"Arbitrary Mattermost Team can be joined by manipulating the SAML RelayState","vendor":"Mattermost","product":"Mattermost","tier":"tail","description":{"text":"Mattermost versions 10.11.x <= 10.11.1, 10.10.x <= 10.10.2, 10.5.x <= 10.5.10 fail to verify a user has permission to join a Mattermost team using the original invite token which allows any attacked to join any team on a Mattermost server regardless of restrictions via manipulating the RelayState","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00475,"percentile":0.33362,"provenance":"source"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://mattermost.com/security-updates","tags":[]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":6.67},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"mattermost","affectedVersions":[{"vendor":"Mattermost","product":"Mattermost","versions":[">= 10.11.0, <= 10.11.1",">= 10.10.0, <= 10.10.2",">= 10.5.0, <= 10.5.10"]}],"fixedVersions":[{"vendor":"Mattermost","product":"Mattermost","versions":["10.12.0","10.11.2","10.10.3","10.5.11"]}],"solutions":{"items":["Update Mattermost to versions 10.12.0, 10.11.2, 10.10.3, 10.5.11 or higher."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-10-22T03:55:14.709763Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/mattermost/mattermost/server/v8","vulnerableRanges":["<8.0.0-20250815100400-2d5cdc6e217e","all versions"],"patched":["8.0.0-20250815100400-2d5cdc6e217e"],"from":["GHSA-r6qj-894f-5hr2","GO-2025-4035"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server","vulnerableRanges":[">=10.11.0, <10.11.2",">=10.10.0, <10.10.3",">=10.5.0, <10.5.11",">=10.5.0+incompatible, <10.5.11+incompatible",">=10.10.0+incompatible, <10.10.3+incompatible",">=10.11.0+incompatible, <10.11.2+incompatible"],"patched":["10.11.2","10.10.3","10.5.11","10.5.11+incompatible","10.10.3+incompatible","10.11.2+incompatible"],"from":["GHSA-r6qj-894f-5hr2","GO-2025-4035"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2025-4035"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2025-4035"],"provenance":"source"}],"summary":{"text":"The flaw is in Mattermost, where the SAML login flow fails to verify that a user is permitted to join a team when using the original invite token, affecting the affected 10.11.x, 10.10.x and 10.5.x releases up to the versions listed. An attacker with a valid low-privilege account on the server can, by manipulating the SAML RelayState parameter, join any team on that server regardless of its restrictions, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:03Z"},"euvd":{"id":"EUVD-2025-34729","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mattermost-cve-2023-5969","parents":[{"from":"CVE-2024-10214","to":"CVE-2025-58075","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/channels/web/oauth.go"],"commits":["https://github.com/mattermost/mattermost/commit/0d6b1070a26f0b9fc13f7e7fbbe18b6a31570c5a","https://github.com/mattermost/mattermost/commit/0e478b2d895e89143c7732c7b33e16d98ace663d","https://github.com/mattermost/mattermost/commit/2d5cdc6e217eb244e7f2122cb89f85140b6d982a"],"basis":"shared function","functions":["completeOAuth"]}]},{"from":"CVE-2025-9072","to":"CVE-2025-58075","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/channels/web/oauth.go"],"commits":["https://github.com/mattermost/mattermost/commit/0e478b2d895e89143c7732c7b33e16d98ace663d","https://github.com/mattermost/mattermost/commit/2d5cdc6e217eb244e7f2122cb89f85140b6d982a","https://github.com/mattermost/mattermost/commit/13cd76009d31754db46115bddef5287a8a29871a","https://github.com/mattermost/mattermost/commit/9eebaadf8f720788e99b6997337c8df330271326"],"basis":"shared function","functions":["signupWithOAuth"]}]},{"from":"CVE-2025-9084","to":"CVE-2025-58075","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/channels/web/oauth.go"],"commits":["https://github.com/mattermost/mattermost/commit/0e478b2d895e89143c7732c7b33e16d98ace663d","https://github.com/mattermost/mattermost/commit/2d5cdc6e217eb244e7f2122cb89f85140b6d982a","https://github.com/mattermost/mattermost/commit/39bd251fe4f66b7e847fc6d653221886347ff160"],"basis":"shared function","functions":["completeOAuth","signupWithOAuth"]}]},{"from":"CVE-2025-58073","to":"CVE-2025-58075","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/channels/web/oauth.go"],"commits":["https://github.com/mattermost/mattermost/commit/2096f975b2c0ebe95fb1078c3b1a527da574796d","https://github.com/mattermost/mattermost/commit/39bd251fe4f66b7e847fc6d653221886347ff160","https://github.com/mattermost/mattermost/commit/0e478b2d895e89143c7732c7b33e16d98ace663d","https://github.com/mattermost/mattermost/commit/2d5cdc6e217eb244e7f2122cb89f85140b6d982a"],"basis":"shared function","functions":["completeOAuth","signupWithOAuth"]},{"kind":"similar","provenance":"machine","score":0.87,"basis":"same product + CWE + description similarity"}]}],"children":[{"from":"CVE-2025-58075","to":"CVE-2025-11794","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/channels/app/user.go","server/channels/web/saml.go"],"commits":["https://github.com/mattermost/mattermost/commit/375ce229f4923205394d8f27925372b2cbf28130","https://github.com/mattermost/mattermost/commit/6c288aa62bb3343183ec1d0a06360d14aa0193e9","https://github.com/mattermost/mattermost/commit/0e478b2d895e89143c7732c7b33e16d98ace663d","https://github.com/mattermost/mattermost/commit/2d5cdc6e217eb244e7f2122cb89f85140b6d982a"],"basis":"shared function","functions":["loginWithSaml"]}]},{"from":"CVE-2025-58075","to":"CVE-2025-12419","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/channels/app/oauth.go"],"commits":["https://github.com/mattermost/mattermost/commit/15364790cc277cfaa372693d2d5442b87f70fd42","https://github.com/mattermost/mattermost/commit/364c2203de00fe0d8424b6b46d6f0eeb02a2539a","https://github.com/mattermost/mattermost/commit/0e478b2d895e89143c7732c7b33e16d98ace663d","https://github.com/mattermost/mattermost/commit/2d5cdc6e217eb244e7f2122cb89f85140b6d982a"],"basis":"shared function","functions":["AuthorizeOAuthUser"]}]},{"from":"CVE-2025-58075","to":"CVE-2025-13324","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/channels/app/oauth.go"],"commits":["https://github.com/mattermost/mattermost/commit/364c2203de00fe0d8424b6b46d6f0eeb02a2539a","https://github.com/mattermost/mattermost/commit/7ccb62db7958abd6a4b21a06c5a4f5367a8f8b1f","https://github.com/mattermost/mattermost/commit/0e478b2d895e89143c7732c7b33e16d98ace663d","https://github.com/mattermost/mattermost/commit/2d5cdc6e217eb244e7f2122cb89f85140b6d982a"],"basis":"shared function","functions":["AuthorizeOAuthUser"]}]},{"from":"CVE-2025-58075","to":"CVE-2025-55073","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server/channels/app/user.go","server/channels/web/saml.go"],"commits":["https://github.com/mattermost/mattermost/commit/375ce229f4923205394d8f27925372b2cbf28130","https://github.com/mattermost/mattermost/commit/6c288aa62bb3343183ec1d0a06360d14aa0193e9","https://github.com/mattermost/mattermost/commit/0e478b2d895e89143c7732c7b33e16d98ace663d","https://github.com/mattermost/mattermost/commit/2d5cdc6e217eb244e7f2122cb89f85140b6d982a"],"basis":"shared function","functions":["loginWithSaml"]}]}],"packageHistory":[{"cve":"CVE-2025-9072","published":"2025-09-15","fixed":"8.0.0-20250731063404-9eebaadf8f72","kev":false},{"cve":"CVE-2025-58073","published":"2025-10-16","fixed":"8.0.0-20250807174701-e14175eb6539","kev":false},{"cve":"CVE-2025-47700","published":"2025-08-21","fixed":"8.0.0-20250814075248-83a37a861d3c","kev":false,"link":{"from":"CVE-2025-47700","to":"CVE-2025-58075","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/mattermost/mattermost/server/v8","fromFixed":"8.0.0-20250814075248-83a37a861d3c","toFixed":"8.0.0-20250815100400-2d5cdc6e217e","daysApart":56}]}},{"cve":"CVE-2025-58075","published":"2025-10-16","fixed":"8.0.0-20250815100400-2d5cdc6e217e","kev":false},{"cve":"CVE-2025-11776","published":"2025-11-14","fixed":"8.0.0-20250815165020-c8d66301415d","kev":false,"link":{"from":"CVE-2025-58075","to":"CVE-2025-11776","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/mattermost/mattermost/server/v8","fromFixed":"8.0.0-20250815100400-2d5cdc6e217e","toFixed":"8.0.0-20250815165020-c8d66301415d","daysApart":29}]}},{"cve":"CVE-2025-41436","published":"2025-11-14","fixed":"8.0.0-20250815165020-c8d66301415d","kev":false,"link":{"from":"CVE-2025-58075","to":"CVE-2025-41436","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/mattermost/mattermost/server/v8","fromFixed":"8.0.0-20250815100400-2d5cdc6e217e","toFixed":"8.0.0-20250815165020-c8d66301415d","daysApart":29}]}},{"cve":"CVE-2025-10545","published":"2025-10-16","fixed":"8.0.0-20250820115038-ff30b84049f0","kev":false}],"package":"Go:github.com/mattermost/mattermost/server/v8"}}