CVE-2026-6961

CVE-2026-6961: Path traversal via unsanitized FileInfo.Name in Mattermost federation sync

Published Jun 12, 2026 CVSS 3.1 · 7.6 High EPSS < 1% KEV · Not listed
Description
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

Analysis

AI-generated

Technical impact

Mattermost fails to sanitize the FileInfo.Name field received from federated peers during shared channel file sync. The flaw 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. This can lead to overwriting critical configuration files or storing malicious binaries, thereby compromising the integrity of the system. The weakness is a classic path traversal flaw (CWE-22).

Affected Systems

The vulnerability affects Mattermost, versions 11.6.x up to 11.6.1, 11.5.x up to 11.5.4, 10.11.x up to 10.11.15, and 10.11.x up to 10.11.16. Any deployment of these versions that has federation enabled and accepts file sync from an external server is vulnerable.

Risk and Exploitability

The CVSS score of 7.6 indicates high severity. The EPSS score is not available, so the exploitation probability is currently unknown. The vulnerability is not listed in CISA’s KEV catalog. An attacker must control a federated peer and initiate a file sync; the likely attack vector is network‑based through the federation channel, allowing the attacker to write arbitrary files to the target server’s filestore.

Remediation

Vendor Solution

Update Mattermost to versions 11.7.0, 11.6.2, 11.5.5, 10.11.16, 10.11.17 or higher.


OpenCVE Recommended Actions

  • Apply an official Mattermost update to v11.7.0, v11.6.2, v11.5.5, v10.11.16, or v10.11.17 or later.
  • If federation is not required, disable the federation feature or restrict it to trusted servers only.
  • Monitor federation logs for unexpected file sync activity and verify that only known peers are connected.

Generated by OpenCVE AI on June 12, 2026 at 19:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8qq9-cqj8-82w4 Mattermost doesn't sanitize FileInfo.Name received from federated peers during shared channel file sync
References
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mattermost
Mattermost mattermost
Vendors & Products Mattermost
Mattermost mattermost
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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
Title CVE-2026-6961: Path traversal via unsanitized FileInfo.Name in Mattermost federation sync
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 7.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:L'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
Mattermost
Published
Updated
Jun 16, 2026, 1:17 PM
Reserved
Apr 24, 2026, 3:22 PM
Status
Analyzed
Published
Jun 12, 2026, 5:16 PM
Modified
Jun 18, 2026, 2:40 PM