Mattermost Fails to Restrict Command Execution in Archived ChannelsGHSA-4v65-xqcj-wpgg
MEDIUMGHSA-4v65-xqcj-wpgg is a medium-severity (CVSS 4.3) CWE-863 vulnerability in github.com/mattermost/mattermost/server/v8. A fix is available for github.com/mattermost/mattermost/server/v8 — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-4v65-xqcj-wpgg.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
github.com/mattermost/mattermost/server/v8🐹github.com/mattermost/mattermost/server/v8🐹github.com/mattermost/mattermost/server/v8🐹github.com/mattermost/mattermost/server/v8Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Mattermost versions 10.4.x <= 10.4.2, 10.3.x <= 10.3.3, 9.11.x <= 9.11.8 fail to restrict command execution in archived channels, which allows authenticated users to run commands in archived channels.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/mattermost/mattermost/server/v8 | ≥ 10.4.0&&< 10.4.3 | 10.4.3go get github.com/mattermost/mattermost/server/v8@v10.4.3 |
| 🐹Go | github.com/mattermost/mattermost/server/v8 | ≥ 10.3.0&&< 10.3.4 | 10.3.4go get github.com/mattermost/mattermost/server/v8@v10.3.4 |
| 🐹Go | github.com/mattermost/mattermost/server/v8 | ≥ 9.11.0&&< 9.11.9 | 9.11.9go get github.com/mattermost/mattermost/server/v8@v9.11.9 |
| 🐹Go | github.com/mattermost/mattermost/server/v8 | ≥ 10.5.0&&< 10.5.1 | 10.5.1go get github.com/mattermost/mattermost/server/v8@v10.5.1 |
Affected Products
mattermost servermattermostDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/mattermost/mattermost/server/v8, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/mattermost/mattermost/server/v8 to 10.4.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-4v65-xqcj-wpgg is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
Frequently Asked Questions
Is GHSA-4v65-xqcj-wpgg in your dependencies?
Find it across Go, including transitive dependencies.