CVE-2026-4265
vulnerability analysis and mitigation

Overview

CVE-2026-4265 is an incorrect authorization vulnerability in Mattermost Server that allows guest users to bypass team-specific file upload restrictions. Affected versions include 11.3.x ≤ 11.3.0, 11.2.x ≤ 11.2.2, and 10.11.x ≤ 10.11.10. The vulnerability was published on March 16, 2026, and is tracked under Mattermost Advisory ID MMSA-2025-00553. It carries a CVSS v3.1 base score of 4.3 (Medium) (Mattermost Security).

Technical details

The root cause is an incorrect authorization check (CWE-863) in Mattermost's file upload permission validation logic, which fails to enforce team-specific upload_file permissions. An authenticated guest user can exploit this by first uploading a file in a team where they hold upload_file permission, then reusing the resulting file metadata in a POST request targeting a different team's channel where they lack that permission. This cross-team metadata reuse bypasses the intended access control boundary, requiring only low-privilege network access with no user interaction (Mattermost Security).

Impact

Successful exploitation allows guest users to post files in channels where they are explicitly denied upload_file permission, undermining channel-level access controls. This could enable guests to share inappropriate, malicious, or sensitive content in restricted channels, compromising the integrity of team and channel boundaries. There is no confidentiality or availability impact; the effect is limited to unauthorized integrity modification of channel content (Mattermost Security).

Exploitation steps

  1. Obtain guest access: Authenticate to a Mattermost instance as a guest user who has upload_file permission in at least one team (Team A).
  2. Upload a file in permitted team: Use the Mattermost API or client to upload a file to a channel in Team A, capturing the returned file metadata (e.g., file_id).
  3. Identify restricted target channel: Identify a channel in a different team (Team B) where the guest account lacks upload_file permission.
  4. Craft cross-team POST request: Construct a POST request to the Mattermost API endpoint for creating a post in the target Team B channel, embedding the file_id obtained from Team A in the request body.
  5. Bypass authorization: Because the server does not re-validate team-specific upload permissions when reusing existing file metadata, the post with the attached file is accepted and published in the restricted channel (Mattermost Security).

Indicators of compromise

  • Logs: Mattermost audit logs showing a guest user account creating posts with file attachments in channels belonging to teams where the user has no upload_file permission; file IDs appearing in posts across multiple teams from the same guest account.
  • Network: API calls from a guest user to /api/v4/posts in Team B channels shortly after file upload API calls (/api/v4/files) to Team A channels, originating from the same source IP.
  • Behavioral: A guest user account associated with file uploads in teams they are not expected to interact with, or file metadata reuse patterns where the same file_id appears in posts across different teams.

Mitigation and workarounds

Mattermost has released patched versions addressing this vulnerability: 10.11.11, 11.2.3, and 11.3.1. Organizations should immediately upgrade their Mattermost Server instances to one of these versions depending on their current release branch. No configuration-based workaround is documented; upgrading is the recommended remediation. Post-patch, administrators should review audit logs for suspicious cross-team file upload activity by guest users to identify any prior exploitation (Mattermost Security).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management