Skip to main content
No exploitation reportedFix available

CVE-2025-4981

No exploitation reported by the sources we read.

  • Published2025-06-20
  • Fixed in10.8.1 · 10.7.3 · 10.6.6 · 10.5.6 · 9.11.16 · 8.0.0-20250519205859-65aec10162f6
  • WeaknessCWE-427

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2025-06-2011:15CVE publishedNVD

Versions per branch

OSV · NVD
Mattermost mattermost server
BranchAffectedFixed in
10.8≥ 10.8.0, < 10.8.110.8.1
10.7≥ 10.7.0, < 10.7.310.7.3
10.6≥ 10.6.0, < 10.6.610.6.6
10.5≥ 10.5.0, < 10.5.610.5.6
9.11≥ 9.11.0, < 9.11.169.11.16
8.0< 8.0.0-20250519205859-65aec10162f68.0.0-20250519205859-65aec10162f6
10.8= 10.8.0no fix published
mattermost/mattermost-server
BranchAffectedFixed in
10.8≥ 10.8.0+incompatible, < 10.8.1+incompatible10.8.1+incompatible
10.7≥ 10.7.0+incompatible, < 10.7.3+incompatible10.7.3+incompatible
10.6≥ 10.6.0+incompatible, < 10.6.6+incompatible10.6.6+incompatible
10.5≥ 10.5.0+incompatible, < 10.5.6+incompatible10.5.6+incompatible
9.11≥ 9.11.0+incompatible, < 9.11.16+incompatible9.11.16+incompatible
0.0< 0.0.0-20250519205859-65aec10162f60.0.0-20250519205859-65aec10162f6
mattermost/mattermost-server
BranchAffectedFixed in
—all versionsno fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As Mattermost, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Mattermostother versions: not affected
    Affected
    • ≥ 10.5.0, ≤ 10.5.5no fix statedsemver
    • ≥ 9.11.0, ≤ 9.11.15no fix statedsemver
    • ≥ 10.8.0, ≤ 10.8.0no fix statedsemver
    • ≥ 10.7.0, ≤ 10.7.2no fix statedsemver
    • ≥ 10.6.0, ≤ 10.6.5no fix statedsemver

    Not affected = 10.9.0 · = 10.5.6 · = 9.11.16

    3 more version lines in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-06-20

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • govulncheck-vulndbopenSUSE:Tumbleweedall versions · fixed in 0.0.20250730T213748-1.1

Full record on NVD

Fix

  1. Update Mattermost mattermost server to 10.8.1 · 10.7.3 · 10.6.6 · 10.5.6 · 9.11.16 · 8.0.0-20250519205859-65aec10162f6

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-10-23
  • CISA-ADPSSVC decisionnone2025-06-20
  • CNACVSS 3.19.9known since 2026-10-23
  • CNAweakness (CWE)CWE-427known since 2026-10-23
  • FIRST EPSSEPSS score1.1 %2026-11-18
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryCRITICAL2025-06-20

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Published
2025-06-20
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-qh58-9v3j-wcjc

Frequently asked questions

What is CVE-2025-4981?

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.

Is CVE-2025-4981 actively exploited?

Active exploitation of CVE-2025-4981 has not been confirmed. Its EPSS score was 1.1% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

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

CVE-2025-4981 has a CVSS v3 base score of 9.9 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.

Running govulncheck-vulndb? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record