CVE-2026-7521

SAML certificate deletion allows path traversal to delete arbitrary files outside the config directory

Published Jul 28, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
Mattermost versions 11.8.x <= 11.8.0, 11.7.x <= 11.7.3, 11.6.x <= 11.6.5, 10.11.x <= 10.11.20 fail to verify file deletion path which allows an admin with SAML system-console write permissions to delete arbitrary files outside the config directory from the server via the remove file endpoint.. Mattermost Advisory ID: MMSA-2026-00666

Analysis

AI-generated

Technical impact

Mattermost versions 11.8.x through 10.11.x contain a path‑traversal vulnerability in the remove file API that allows an administrator with SAML system‑console write permissions to specify a file path outside the configuration directory and delete that file. This flaw permits arbitrary file removal on the host, which can lead to data loss, configuration corruption, or enable further compromise if the deleted files contain credentials or executables. The weakness is classified as CWE‑22 paths and is not a direct code‑execution flaw but can undermine system integrity.

Affected Systems

The flaw affects Mattermost Enterprise and community editions in the following versions: 11.8.x up to 11.8.0, 11.7.x up to 11.7.3, 11.6.x up to 11.6.5, and 10.11.x up to 10.11.20. The vulnerability exists only for installations that expose the remove file endpoint to users with SAML system‑console write rights.

Risk and Exploitability

The CVSS score is 5.5, indicating moderate severity. The EPSS score is less than 1%, meaning exploitation is currently considered low probability. The vulnerability is not listed in the CISA KEV catalog. Execution requires administrative privileges and the ability to access the SAML system‑console write interface; therefore, the risk is confined to environments where such privileges are distributed. In the event of privilege misuse or compromise, the attacker could delete critical files, potentially leading to service disruption or enabling further attacks.

Remediation

Vendor Solution

Update Mattermost to versions 11.9.0, 11.8.1, 11.7.4, 11.6.6, 10.11.21 or higher.


OpenCVE Recommended Actions

  • Update Mattermost to version 11.9.0, 11.8.1, 11.7.4, 11.6.6, or 10.11.21 or newer.
  • Limit SAML system‑console write permissions to trusted administrators on the server.
  • If the remove file endpoint is not required, disable it or firewall it to prevent unintended exposure.

Generated by OpenCVE AI on August 3, 2026 at 14:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
References
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, '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
Description Mattermost versions 11.8.x <= 11.8.0, 11.7.x <= 11.7.3, 11.6.x <= 11.6.5, 10.11.x <= 10.11.20 fail to verify file deletion path which allows an admin with SAML system-console write permissions to delete arbitrary files outside the config directory from the server via the remove file endpoint.. Mattermost Advisory ID: MMSA-2026-00666
Title SAML certificate deletion allows path traversal to delete arbitrary files outside the config directory
Weaknesses CWE-22
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
Mattermost
Published
Updated
Jul 28, 2026, 2:48 PM
Reserved
Apr 30, 2026, 4:51 PM
Status
Analyzed
Published
Jul 28, 2026, 3:17 PM
Modified
Jul 29, 2026, 3:06 PM