MEDIUM 6.7

CVE-2026-6739: Mattermost Privilege Escalation via Role Patch API

Mattermost Server has a privilege escalation flaw affecting multiple recent versions (11.6.1, 11.5.4, 10.11.15, and 10.11.16). Users with delegated user-management permissions can abuse the role patch API to modify built-in system roles without proper authorization checks, effectively gaining elevated system privileges they shouldn't possess. An authenticated attacker doesn't need admin status—just user-management delegation—to exploit this, making it a meaningful risk in environments with distributed role administration.

Source data · NVD / CISA · public domain

CVSS
3.1 · 6.7 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L
Weaknesses (CWE)
CWE-863
Affected products
1 configuration(s)
Published / Modified
2026-06-12 / 2026-06-18

NVD description (verbatim)

Mattermost versions 11.6.x <= 11.6.1, 11.5.x <= 11.5.4, 10.11.x <= 10.11.15, 10.11.x <= 10.11.16 fail to require system-level permission when patching protected default system roles, which allows authenticated users with delegated user-management permissions to escalate privileges by altering built-in role permissions via the role patch API.. Mattermost Advisory ID: MMSA-2026-00656

1 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability stems from missing system-level authorization controls in Mattermost's role patching mechanism. When authenticated users with delegated user-management permissions call the role patch API, the application fails to verify whether the caller has system-level privileges required to modify protected default system roles. This allows an attacker to craft API requests that alter permission sets of built-in roles (such as administrator, user, or guest roles), effectively escalating their own capabilities or those of other users. The issue is classified as CWE-863 (Incorrect Authorization), reflecting inadequate permission validation at the API boundary.

Business impact

This vulnerability directly threatens role-based access control (RBAC) integrity in Mattermost deployments. Organizations relying on Mattermost for team collaboration must trust that built-in role definitions remain consistent and authorized. If an attacker escalates privileges via role modification, they could gain access to sensitive channels, archives, or user data; conduct lateral movement within Mattermost; or establish persistent administrative access. The impact scales with the organization's dependence on delegated user-management and the sensitivity of data within Mattermost. For enterprises using Mattermost as a primary collaboration platform, unauthorized privilege escalation represents a significant governance and compliance risk.

Affected systems

Mattermost Server versions 11.6.x up to and including 11.6.1, 11.5.x up to and including 11.5.4, 10.11.x up to and including 10.11.15, and 10.11.x up to and including 10.11.16 are vulnerable. Notably, both 10.11.15 and 10.11.16 are listed, suggesting a recent patch may have been incomplete or a regression occurred. Organizations running any of these versions should prioritize updates immediately. Verify your exact version in Mattermost System Console (Administration > About > Version) and cross-reference against the vendor's advisory MMSA-2026-00656.

Exploitability

Exploitability is moderate but practical. An attacker must already be authenticated to Mattermost and must have been granted delegated user-management permissions—a common delegation pattern in larger deployments. They do not need to be a system administrator. The attack requires no user interaction and can be executed via direct API calls, making it scriptable and repeatable. Network access is required but trivial in any environment where Mattermost is deployed. The attack surface is any organization that grants user-management rights to non-admin users, which is typical for IT departments managing user lifecycle tasks.

Remediation

Patch immediately to the fixed versions provided by Mattermost for each affected branch. Verify your current version and apply the appropriate patch: consult Mattermost Advisory MMSA-2026-00656 and Mattermost's official release notes for the exact fixed version numbers for your branch (11.6.x, 11.5.x, or 10.11.x). After patching, test role management functionality in a staging environment to ensure the fix does not introduce regressions. Additionally, audit which users currently hold delegated user-management permissions and revoke access for any whose role does not genuinely require it. Review audit logs for any suspicious role modification API calls prior to patching.

Patch guidance

Contact your Mattermost support channel or consult the official Mattermost advisory (MMSA-2026-00656) and release documentation for the specific patched version for your branch. Because two patch versions (10.11.15 and 10.11.16) are both listed as vulnerable, verify that the version you upgrade to is explicitly marked as fixed in the advisory—do not assume 'newer' equals 'patched.' Deploy patches in a test environment first to validate compatibility with your deployment configuration, custom integrations, and plugins. Plan for a maintenance window; although the fix should not require data migration, a controlled rollout minimizes operational risk. Monitor Mattermost logs post-patch for any role-patch API errors that might indicate compatibility issues.

Detection guidance

Monitor API logs for POST/PATCH requests to the role management endpoints (typically `/api/v4/roles/{role_id}` or similar). Flag any role modification attempts by users without system administrator status. Audit the user-management delegation logs: review who holds these permissions and correlate with suspicious API activity. Check Mattermost's audit log (Administration > Reporting > Audit Log) for unexpected changes to built-in role definitions. Alert on any modification timestamps that align with suspicious user access patterns. If SIEM integration is available, create detection rules for role patch API calls by non-admin authenticated users, especially during off-hours.

Why prioritize this

Although the CVSS score is 6.7 (MEDIUM), the practical risk is elevated due to the low barrier to exploitation (any delegated user-management account) and the critical nature of what is compromised (system role definitions). Privilege escalation affecting core access controls should take priority over vulnerabilities requiring more initial compromise. This is not listed on the Known Exploited Vulnerabilities (KEV) catalog, but its exploitability and direct impact on authorization integrity warrant urgent patching within 1–2 weeks of release. Organizations with more permissive delegation of user-management rights should patch even sooner.

Risk score, explained

The CVSS 3.1 score of 6.7 reflects a network-accessible vulnerability requiring high-level privileges (authenticated delegated user-management account) but delivering high impact on confidentiality and integrity with lower impact on availability. The vector AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L indicates network reachability, low attack complexity, high privilege requirement, and high confidentiality and integrity impact. In context, the real-world risk may feel higher to security teams because the target (role definitions) is foundational to access control, and the attack leverages a common operational pattern (delegated user administration). The 'MEDIUM' severity label should not underestimate the criticality of patching given the nature of privilege escalation.

Frequently asked questions

If we use LDAP or SAML for user provisioning and don't delegate manual user management, are we still at risk?

Partially. Even if user provisioning is automated, if any account holds delegated user-management permissions (for example, an administrative or HR-delegated account), that account can be compromised or misused to escalate privileges. Review your actual permission grants in Mattermost; even environments with SSO should patch, as delegation is separate from provisioning.

Will patching require downtime or data loss?

Patching should not require downtime or data loss. The fix is an API-level authorization control change with no schema or data migration. However, always test in a staging environment first and plan a maintenance window to minimize user disruption and allow for quick rollback if unexpected issues arise.

How do we know if we've been exploited?

Check your Mattermost audit log (Administration > Reporting > Audit Log) for unexpected modifications to built-in roles (Admin, User, Guest, etc.) with timestamps and user IDs. Cross-reference role change timestamps with your API or authentication logs to identify the source. If you see role modifications by non-admin users, prioritize immediate investigation and consider a forensic review of role assignments and access.

What is the difference between versions 10.11.15 and 10.11.16 if both are vulnerable?

The advisory lists both as vulnerable, which is unusual. This may indicate a regression or an incomplete fix in 10.11.16. Do not assume a higher version number is patched. Consult Mattermost Advisory MMSA-2026-00656 for the exact fixed version for the 10.11.x branch and apply that specific version.

This analysis is based on publicly disclosed information as of the publication and modification dates provided. Patch version numbers and exact remediation steps must be verified against Mattermost's official advisory (MMSA-2026-00656) and vendor release documentation. No exploit code or weaponized proof-of-concept is provided. Organizations should conduct internal testing and validation before deploying patches in production. This summary does not constitute professional security advice; consult your security team and vendor documentation for your specific deployment. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).