Miggo Logo

CVE-2025-25274:
Mattermost Fails to Restrict Command Execution in Archived Channels

4.3

CVSS Score
3.1

Basic Information

EPSS Score
0.16746%
Published
3/21/2025
Updated
3/21/2025
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/mattermost/mattermost/server/v8go
github.com/mattermost/mattermost/server/v8go
github.com/mattermost/mattermost/server/v8go
github.com/mattermost/mattermost/server/v8go

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing authorization checks for archived channels during command execution. The primary suspect is the command execution handler (ExecuteCommand) which would naturally be the entry point for processing commands. The medium-confidence HasPermissionToChannel function is included because authorization flaws often involve permission-checking utilities. Both align with CWE-863 (Incorrect Authorization) by failing to enforce archived channel state constraints.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

M*tt*rmost v*rsions **.*.x <= **.*.*, **.*.x <= **.*.*, *.**.x <= *.**.* **il to r*stri*t *omm*n* *x**ution in *r**iv** ***nn*ls, w*i** *llows *ut**nti**t** us*rs to run *omm*n*s in *r**iv** ***nn*ls.

Reasoning

T** vuln*r**ility st*ms *rom missin* *ut*oriz*tion ****ks *or *r**iv** ***nn*ls *urin* *omm*n* *x**ution. T** prim*ry susp**t is t** *omm*n* *x**ution **n*l*r (`*x**ut**omm*n*`) w*i** woul* n*tur*lly ** t** *ntry point *or pro**ssin* *omm*n*s. T** m*