CVE-2023-6458 — mattermost-server
HIGHCVE-2023-6458 is a high-severity (CVSS 7.1) CWE-74 vulnerability in github.com/mattermost/mattermost-server/v6. A fix is available for github.com/mattermost/mattermost-server/v6 — see the affected versions and patch details below.
Client side path traversal due to lack of route parameters validation
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/v6🐹github.com/mattermost/mattermost/server/v8🐹github.com/mattermost/mattermost/server/v8🐹github.com/mattermost/mattermost/serverReal-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 webapp fails to validate route parameters in/<TEAM_NAME>/channels/<CHANNEL_NAME> allowing an attacker to perform a client-side path traversal.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/mattermost/mattermost-server/v6 | all versions | 7.8.14go get github.com/mattermost/mattermost-server/v6@v7.8.14 |
| 🐹Go | github.com/mattermost/mattermost/server/v8 | all versions | 8.1.5go get github.com/mattermost/mattermost/server/v8@v8.1.5 |
| 🐹Go | github.com/mattermost/mattermost/server/v8 | ≥ 9.0.0&&< 9.0.3 | 9.0.3go get github.com/mattermost/mattermost/server/v8@v9.0.3 |
| 🐹Go | github.com/mattermost/mattermost/server | ≥ 9.1.0&&< 9.1.2 | 9.1.2go get github.com/mattermost/mattermost/server@v9.1.2 |
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/v6, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/mattermost/mattermost-server/v6 to 7.8.14 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2023-6458 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Frequently Asked Questions
Is CVE-2023-6458 in your dependencies?
Find it across Go, including transitive dependencies.