BreachSpiderVerified, not vibes

CVE-2025-4981 in Mattermost Server and 1 more product

Critical 9.9

Mattermost versions 10.5.x <= 10.5.5, 9.11.x <= 9.11.15, 10.8.x <= 10.8.0, 10.7.x <= 10.7.2, 10.6.x <= 10.6.5 fail to sanitize filenames in the archive extractor which allows authenticated users to write files to arbitrary locations on the filesystem via uploading archives with path traversal sequences in filenames,...

Affects 2 products from 1 vendor. Facts below cite their sources.

CVSS 3.19.9
EPSS1.3%
EPSS percentile71th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Mattermost Mattermost Server 10.8.0 ≥ 9.11.0, < 9.11.16 ≥ 10.5.0, < 10.5.6 ≥ 10.6.0, < 10.6.6 ≥ 10.7.0, < 10.7.3
Mattermost Mattermost ≥ 9.11.0, ≤ 9.11.15 ≥ 10.5.0, ≤ 10.5.5 ≥ 10.6.0, ≤ 10.6.5 ≥ 10.7.0, ≤ 10.7.2 ≥ 10.8.0, ≤ 10.8.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Mattermost versions 10.5.x <= 10.5.5, 9.11.x <= 9.11.15, 10.8.x <= 10.8.0, 10.7.x <= 10.7.2, 10.6.x <= 10.6.5 fail to sanitize filenames in the archive extractor which allows authenticated users to write files to arbitrary locations on the filesystem via uploading archives with path traversal sequences in filenames, potentially leading to remote code execution. The vulnerability impacts instances where file uploads and document search by content is enabled (FileSettings.EnableFileAttachments = true and FileSettings.ExtractContent = true). These configuration settings are enabled by default.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-4981
BreachSpider IDBS-2025-GLOBAL-265018-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Published2025-06-20
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-427: CWE-427

Related attack patterns (CAPEC)

CAPEC-38 Leveraging/Manipulating Configuration File Search Paths via CWE-427

CAPEC-471 Search Order Hijacking via CWE-427

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

{ "executive_summary": "Mattermost versions 10.5.x <= 10.5.5, 9.11.x <= 9.11.15, 10.8.x <= 10.8.0, 10.7.x <= 10.7.2, 10.6.x <= 10.6.5 are vulnerable to a path traversal attack due to improper filename sanitization in the archive extractor, allowing authenticated users to write files to arbitrary locations on the filesystem, potentially leading to remote code execution.", "attack_vector_detail": "Authenticated users can upload archives with filenames containing path traversal sequences, which the vulnerable versions of Mattermost fail to sanitize. This allows the attacker to write files to arbitrary locations on the server's filesystem, potentially leading to remote code execution if the attacker can place a malicious file in a location that is executed by the server.", "affected_components": ["Mattermost versions 10.5.x <= 10.5.5", "9.11.x <= 9.11.15", "10.8.x <= 10.8.0

Vulnerability details: Mattermost versions 10.5.x <= 10.5.5, 9.11.x <= 9.11.15, 10.8.x <= 10.8.0, 10.7.x <= 10.7.2, 10.6.x <= 10.6.5 fail to sanitize filenames in the archive extractor which allows authenticated users to write files to arbitrary locations on the filesystem via uploading archives with path traversal sequences in filenames, potentially leading to remote code execution. The vulnerability impacts instances where file uploads and document search by content is enabled (FileSettings.EnableFileAttachments = t CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.

Questions

What is CVE-2025-4981?

{ "executive_summary": "Mattermost versions 10.5.x <= 10.5.5, 9.11.x <= 9.11.15, 10.8.x <= 10.8.0, 10.7.x <= 10.7.2, 10.6.x <= 10.6.5 are vulnerable to a path traversal attack due to improper filename sanitization in the archive extractor, allowing authenticated users to write files to arbitrary locations on the filesystem, potentially leading to remote code execution.", "attack_vector_detail": "Authenticated users can upload archives with filenames containing path traversal sequences, which

What is the CVSS score for CVE-2025-4981?

CVE-2025-4981 has CVSS 9.9 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. EPSS: 1.3%.

Is CVE-2025-4981 actively exploited?

No confirmed active exploitation of CVE-2025-4981 as of 2026-09-25.

How do I remediate CVE-2025-4981?

Priority: HIGH. Advisory: https://mattermost.com/security-updates PSIRT: [email protected]

What systems are affected by CVE-2025-4981?

CVE-2025-4981 affects Mattermost Mattermost Server, Mattermost.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Mattermost","product":"Mattermost Server","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.