cve.bz

CVE-2025-4981 mattermost mattermost server: Uncontrolled Search Path Element

9.9 criticalEPSS 1.1%Fix available

Critical (9.9) in mattermost mattermost server. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/mattermost/mattermost-server 0.0.0-20250519205859-65aec10162f6, 10.5.6+incompatible, 10.6.6+incompatible.

On this page
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.

Severity

CVSS 3.1

9.9 critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
1.1% (unchanged from 1.0% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-06-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-427 Uncontrolled Search Path Element
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

  • github.com/mattermost/mattermost-server (Go): fixed in 0.0.0-20250519205859-65aec10162f6, 9.11.16+incompatible, 10.5.6+incompatible, 10.6.6+incompatible, 10.7.3+incompatible, 10.8.1+incompatible
  • github.com/mattermost/mattermost/server/v8 (Go): fixed in 8.0.0-20250519205859-65aec10162f6, 10.5.6, 9.11.16, 10.8.1, 10.7.3, 10.6.6
  • openSUSE: fixed package versions per release
  • Vendor advisory: https://mattermost.com/security-updates

Ask an AI about this CVE

Show the promptExplain CVE-2025-4981 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-4981?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-4981?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-4981 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Mattermostfrom 10.5.0 through 10.5.5
Mattermostfrom 9.11.0 through 9.11.15
Mattermostfrom 10.8.0 through 10.8.0
Mattermostfrom 10.7.0 through 10.7.2
Mattermostfrom 10.6.0 through 10.6.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qh58-9v3j-wcjcGogithub.com/mattermost/mattermost-server<0.0.0-20250519205859-65aec10162f60.0.0-20250519205859-65aec10162f6
GHSA-qh58-9v3j-wcjcGogithub.com/mattermost/mattermost/server/v8<8.0.0-20250519205859-65aec10162f68.0.0-20250519205859-65aec10162f6
GHSA-qh58-9v3j-wcjcGogithub.com/mattermost/mattermost/server/v8>=10.5.0 <10.5.610.5.6
GHSA-qh58-9v3j-wcjcGogithub.com/mattermost/mattermost/server/v8>=9.11.0 <9.11.169.11.16
GHSA-qh58-9v3j-wcjcGogithub.com/mattermost/mattermost/server/v8>=10.8.0 <10.8.110.8.1
GHSA-qh58-9v3j-wcjcGogithub.com/mattermost/mattermost/server/v8>=10.7.0 <10.7.310.7.3
GHSA-qh58-9v3j-wcjcGogithub.com/mattermost/mattermost/server/v8>=10.6.0 <10.6.610.6.6
GO-2025-3769Gogithub.com/mattermost/mattermost-server<0.0.0-20250519205859-65aec10162f6
>=9.11.0+incompatible <9.11.16+incompatible
>=10.5.0+incompatible <10.5.6+incompatible
>=10.6.0+incompatible <10.6.6+incompatible
>=10.7.0+incompatible <10.7.3+incompatible
>=10.8.0+incompatible <10.8.1+incompatible
0.0.0-20250519205859-65aec10162f6, 9.11.16+incompatible, 10.5.6+incompatible, 10.6.6+incompatible, 10.7.3+incompatible, 10.8.1+incompatible
GO-2025-3769Gogithub.com/mattermost/mattermost-server/v5all versionsno fix published
GO-2025-3769Gogithub.com/mattermost/mattermost-server/v6all versionsno fix published
GO-2025-3769Gogithub.com/mattermost/mattermost/server/v8<8.0.0-20250519205859-65aec10162f68.0.0-20250519205859-65aec10162f6

Linux distributions

DistributionReleasePackageFixed inAdvisory
openSUSETumbleweedgovulncheck-vulndb0.0.20250730T213748-1.1openSUSE-SU-2025:15405-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: openSUSE.

Attack patterns (CAPEC)

  • CAPEC-38 Leveraging/Manipulating Configuration File Search Paths Likelihood: High · Severity: Very High
  • CAPEC-471 Search Order Hijacking Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON