CVE-2025-20621 | Webapp crash via object that can't be cast to String in Attachment Field

Mattermost versions 10.2.x <= 10.2.0, 9.11.x <= 9.11.5, 10.0.x <= 10.0.3, 10.1.x <= 10.1.3 fail to properly handle posts with attachments containing fields that cannot be cast to a String, which allows an attacker to cause the webapp to crash via creating and sending such a post to a channel.

Published: 2025-01-16 Last update: 2025-10-01 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-20621 is rated Moderate Risk (47/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 0.39%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2025-20621

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-03-15 0.27% 0.39% +0.12%
2 2025-10-12 0.15% 0.27% +0.12%
3 2025-08-12 0.15%

Full EPSS history (5 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-20621

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.5 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.8 3.6 [email protected]
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 3.6 [email protected]

Weakness enumeration for CVE-2025-20621

GitHub Security Advisory for CVE-2025-20621

GHSA-w6xh-c82w-h997 · Severity: medium · Ecosystem: go — Mattermost webapp crash via a crafted post

Affected software / configurations for CVE-2025-20621

Vendor Product Version Raw CPE
mattermost mattermost_server >= 9.11.0, < 9.11.6 cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
mattermost mattermost_server >= 10.0.0, < 10.0.4 cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
mattermost mattermost_server >= 10.1.0, < 10.1.4 cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*
mattermost mattermost_server 10.2.0 cpe:2.3:a:mattermost:mattermost_server:10.2.0:-:*:*:*:*:*:*

References for CVE-2025-20621

URL Tags
https://mattermost.com/security-updates Vendor Advisory
cvelogic Threat Intelligence