CVE-2022-1332 — mattermost-server
MEDIUMCVE-2022-1332 is a medium-severity (CVSS 4.3) Information Exposure 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.
Restricted custom admin role can bypass the restrictions and view the server logs and server config.json file contents
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 CVE-2022-1332.
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/v6🐹github.com/mattermost/mattermost-server/v6🐹github.com/mattermost/mattermost-server/v5Real-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
One of the API in Mattermost version 6.4.1 and earlier fails to properly protect the permissions, which allows the authenticated members with restricted custom admin role to bypass the restrictions and view the server logs and server config.json file contents. Per the Mattermost security updates page, versions 6.4.2, 6.3.5, 6.2.5, and 5.37.9 contain patches for this issue
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/mattermost/mattermost-server/v6 | ≥ 6.4.0&&< 6.4.2 | 6.4.2go get github.com/mattermost/mattermost-server/v6@v6.4.2 |
| 🐹Go | github.com/mattermost/mattermost-server/v6 | ≥ 6.3.0&&< 6.3.5 | 6.3.5go get github.com/mattermost/mattermost-server/v6@v6.3.5 |
| 🐹Go | github.com/mattermost/mattermost-server/v6 | ≥ 6.0.0&&< 6.2.5 | 6.2.5go get github.com/mattermost/mattermost-server/v6@v6.2.5 |
| 🐹Go | github.com/mattermost/mattermost-server/v5 | all versions | 5.37.9go get github.com/mattermost/mattermost-server/v5@v5.37.9 |
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 6.4.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-1332 is resolved across your whole dependency graph.
Workarounds
Close the privilege gap rather than the entry point: audit which accounts, roles and service identities can reach the affected operation, drop the component to the least privilege it actually needs, and review file and directory permissions created by earlier installs — a default left in place is what makes this reachable.
Frequently Asked Questions
Is CVE-2022-1332 in your dependencies?
Find it across Go, including transitive dependencies.