HIGH 7.6

CVE-2026-6961: Mattermost Path Traversal in Federated File Sync

Mattermost has a path traversal vulnerability in how it processes filenames from federated servers during shared channel file synchronization. An attacker controlling a federated Mattermost instance can craft malicious filenames with directory traversal sequences (e.g., ../../../) to write files to unintended locations on a target server's filesystem. This could allow an attacker to overwrite configuration files, inject malicious content, or degrade system availability.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.6 HIGH · CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:L
Weaknesses (CWE)
CWE-22
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 Mattermost fails to sanitize FileInfo.Name received from federated peers during shared channel file sync, which allows an attacker who controls a federated server to write files to arbitrary locations within the target server's filestore via path traversal sequences in the filename field.. Mattermost Advisory ID: MMSA-2026-00661

1 reference(s) · View on NVD →

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

Technical summary

The vulnerability exists in Mattermost's handling of the FileInfo.Name field received from federated peers. During shared channel file sync operations, the application fails to sanitize or validate filename inputs for path traversal patterns before writing files to the filestore. An attacker with control of a federated server can exploit this by embedding sequences like ../ in the filename field, bypassing intended file storage boundaries and writing files to arbitrary directories on the target server. This is a classic CWE-22 path traversal flaw operating across a federated trust boundary.

Business impact

A compromised or attacker-controlled federated Mattermost instance becomes a pivot point to compromise downstream organizations. Attackers could overwrite critical application files, inject malicious content into the filestore, corrupt configuration files, or consume disk space. In multi-tenant environments, this could affect availability and integrity for multiple teams simultaneously. Data integrity and compliance implications are significant if sensitive file metadata or backup configurations are modified.

Affected systems

Mattermost Server versions 11.6.1 and earlier in the 11.6.x branch, 11.5.4 and earlier in the 11.5.x branch, and 10.11.16 and earlier in the 10.11.x branch are affected. Organizations running federated Mattermost deployments are at immediate risk, particularly those that have established trust relationships with external Mattermost instances or allow peer servers to sync shared channels.

Exploitability

Exploitation requires an attacker to control or compromise a federated Mattermost server that has an established trust relationship with the target instance. No user interaction or special privileges on the target system are needed; the attacker's server itself initiates the malicious file sync. The attack surface is limited to organizations using federated channels, but for those that do, the barrier to exploitation is low once federation is configured. CVSS 7.6 (HIGH) reflects the network-accessible nature and integrity/availability impact, though high privileges on the attacking side temper the score.

Remediation

Apply security updates immediately to versions that include the fix. For affected branches, this means upgrading to patched releases in 11.6.x, 11.5.x, and 10.11.x lines—verify the specific patch versions against the official Mattermost security advisory (MMSA-2026-00661). Until patched, restrict federated channel syncing to trusted peers only and monitor file operations on the server for unexpected writes outside designated directories. Consider temporarily disabling federation if your trust posture cannot be verified.

Patch guidance

Check the Mattermost security advisory MMSA-2026-00661 for the exact patched version numbers for each affected branch (11.6.x, 11.5.x, 10.11.x). Plan patching in a maintenance window because federated operations may be interrupted during upgrade. Test in a non-production environment first, especially if you have active shared channels, to ensure sync behavior remains stable post-patch. Review federation trust relationships after patching and audit the filestore for any suspicious files that may have been written during the vulnerability window.

Detection guidance

Monitor Mattermost server logs for file write operations to unexpected paths, particularly those outside the configured filestore directory. Look for FileInfo entries with suspicious filename patterns containing ../ or other path traversal sequences in shared channel sync logs. Audit filesystem changes on the Mattermost server around the time window of suspected federation activity, focusing on modification times of configuration, database, or plugin files. Alert on any failed file write attempts that suggest an attacker probing the filestore boundary.

Why prioritize this

This vulnerability merits urgent patching because it allows a network-accessible attack via a trust relationship (federated peers) and directly threatens system integrity. Organizations with federated deployments should prioritize this above non-critical updates. The attack does not require user interaction or credentials on the target side, only control of a peer server, making it a realistic threat in multi-organization federated environments. The integrity and availability impact (CVSS 7.6 HIGH) justifies prioritization in your remediation queue.

Risk score, explained

CVSS 3.1 score of 7.6 (HIGH) reflects: Network-accessible attack vector (AV:N), low attack complexity (AC:L), high privilege requirement on attacker's server (PR:H—must control a federated peer), no user interaction needed (UI:N), and changed scope (S:C) because the attacker affects resources beyond the federated peer's security scope. The impact is high for integrity (I:H, files written to wrong locations) and low for availability (A:L, potential for disk exhaustion or service disruption). Confidentiality is not impacted (C:N) because the attack does not leak sensitive data, only writes malicious content.

Frequently asked questions

Do we need to be a large organization to be targeted by this vulnerability?

No. Any organization running a Mattermost instance with federated channels is at risk if a peer instance is compromised or untrusted. Federation setup is the primary risk factor, not organization size.

What files are most at risk from this attack?

Configuration files, plugin binaries, database connection files, SSL certificates, and any other files in or accessible from the filestore directory. An attacker could overwrite these to gain persistence or escalate privileges.

Can we patch Mattermost without disrupting active conversations?

Patching requires a restart of the Mattermost service, which will briefly interrupt access. Plan for a maintenance window, but active conversations are not lost—they're stored in the database. Inform users of the downtime window in advance.

How do we know if our server was compromised by this vulnerability?

Review server logs for file write operations to unusual paths, check file modification times on sensitive files during the vulnerability window, and audit the filestore for files with suspicious names or timestamps. Consult your Mattermost instance logs and filesystem audit trails for evidence.

This analysis is based on the official Mattermost security advisory MMSA-2026-00661 and CVSS scoring data current as of the publication date. Specific patch versions and remediation steps must be verified against official Mattermost documentation and your own environment. SEC.co does not provide warranty of completeness or fitness for specific deployments. Test all patches in non-production environments before production deployment. This vulnerability requires federated Mattermost setup; non-federated instances are not affected. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).