CVE-2024-5270 SAML to email switch possible when email signin is disabled
Attackers can bypass SAML authentication restrictions to switch to email login and modify protected profile fields in Mattermost.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-5270?
CVE-2024-5270 is a medium-severity authentication bypass vulnerability in Mattermost Mattermost Server, published on 26 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Mattermost versions 9.5.x <= 9.5.3, 9.7.x <= 9.7.1, 9.6.x <= 9.6.1 and 8.1.x <= 8.1.12 fail to check if the email signup configuration option is enabled when a user requests to switch from SAML to Email. This allows the user to switch their authentication mail from SAML to email and possibly edit personal details that were otherwise non-editable and provided by the SAML provider.
Weakness: CWE-284
Which versions are affected by CVE-2024-5270?
It affects 1 product.
Products include Mattermost Mattermost Server.
How do I fix CVE-2024-5270?
No fix has been published for CVE-2024-5270 yet. Limit exposure of the affected software until one is available.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2024-5270 being exploited?
There is no known exploitation of CVE-2024-5270 in the wild and no public exploit code.
Other vulnerabilities in Mattermost Mattermost Server
- CVE-2025-12419 Account takeover on OAuth/OpenID-enabled servers
- CVE-2025-12421 Account Takeover via Code Exchange Endpoint
- CVE-2025-4981 Path Traversal Leading to RCE by Any Authenticated Mattermost User
- CVE-2025-20051 Arbitrary file read via block duplication in Mattermost Boards
- CVE-2025-25279 Arbitrary file read in Mattermost Boards via import & export board archive