CVE-2025-58073 in Mattermostinfo

Summary

by MITRE • 10/16/2025

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 OAuth state.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 10/28/2025

The vulnerability described in CVE-2025-58073 represents a critical authorization bypass flaw within Mattermost server implementations across multiple version branches including 10.11.1, 10.10.2, and 10.5.10. This issue stems from inadequate validation of user permissions during the team invitation process, specifically when utilizing OAuth authentication flows. The flaw allows malicious actors to manipulate the OAuth state parameter to gain unauthorized access to any team within the Mattermost server infrastructure, effectively circumventing established access controls and team membership restrictions.

The technical implementation of this vulnerability exploits the lack of proper token validation mechanisms within the Mattermost platform's invitation system. When users receive invitation tokens to join specific teams, the system should verify that the requesting user has appropriate authorization to join the target team before granting access. However, the vulnerability enables attackers to manipulate the OAuth state parameter that contains the invitation token information, allowing them to bypass these permission checks entirely. This weakness directly relates to CWE-285, which addresses improper authorization in authentication systems, and specifically manifests as an authorization bypass through manipulation of authentication state.

The operational impact of this vulnerability is severe and far-reaching for organizations utilizing affected Mattermost versions. Attackers can exploit this flaw to join any team within the Mattermost server regardless of the team's access restrictions, potentially gaining access to sensitive communications, confidential project information, and restricted collaboration spaces. This unauthorized access can lead to data breaches, information disclosure, and compromise of organizational security boundaries. The vulnerability affects the core team membership and access control mechanisms that are fundamental to maintaining secure collaboration environments in enterprise settings.

Organizations using affected Mattermost versions should immediately implement mitigations including updating to patched versions that address the OAuth state validation issue. The recommended approach involves applying the latest security patches released by Mattermost that correct the authorization bypass vulnerability. Additionally, administrators should review existing team membership configurations and implement additional monitoring controls to detect unauthorized access attempts. Security teams should also consider implementing network-level controls and access logging to track potential exploitation attempts. The vulnerability demonstrates the critical importance of proper state management in authentication flows and highlights the necessity of robust input validation mechanisms within web applications, particularly those handling user invitations and team access controls.

Responsible

Mattermost

Reservation

09/16/2025

Disclosure

10/16/2025

Moderation

accepted

CPE

ready

EPSS

0.00049

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!