CVE-2022-1332: Improper Privilege Management in Mattermost
Summary
CVE-2022-1332: Improper Privilege Management in Mattermost. Affects github.com/mattermost/mattermost-server/v6 across 3 version ranges.
>= 6.0.0, < 6.2.5
>= 6.3.0, < 6.3.5
>= 6.4.0, < 6.4.2
Fixed in 6.2.5, 6.3.5 or 6.4.2, depending on the release line you run. How to fix ↓
Also tracked for
- github.com/mattermost/mattermost-server · Go
- mattermost · Bitnami
The same CVE-2022-1332 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Mattermost is an open-source messaging platform that enables secure team collaboration. It provides features such as messaging, file sharing, and integrations with other tools. The vulnerability identified as CVE-2022-1332 affects Mattermost versions 6.4.1 and earlier. This vulnerability allows authenticated members with restricted custom admin roles to bypass permissions and gain unauthorized access to server logs and the server config.json file.
Vulnerability Detail
The vulnerability arises from a flaw in one of the APIs in Mattermost. This flaw fails to properly protect permissions, enabling users with restricted admin roles to view sensitive information. By exploiting this vulnerability, attackers can gain access to server logs and the server config.json file. This unauthorized access can lead to the exposure of sensitive data and potential compromise of the Mattermost instance.
How To Fix
Latest published version: v6.7.2 as of 23 Oct 2026
go get github.com/mattermost/mattermost-server/v6@v6.7.2
Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.
If you can't move to the latest
The minimum fixed version depends on the release line you run.
-
>= 6.0.0, < 6.2.56.2.5go get github.com/mattermost/mattermost-server/v6@v6.2.5 -
>= 6.3.0, < 6.3.56.3.5go get github.com/mattermost/mattermost-server/v6@v6.3.5 -
>= 6.4.0, < 6.4.26.4.2go get github.com/mattermost/mattermost-server/v6@v6.4.2
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. The recommended solution is to update to the patched versions of Mattermost.
Conclusion
The vulnerability in Mattermost, identified as CVE-2022-1332, allows authenticated members with restricted custom admin roles to bypass permissions and gain unauthorized access to server logs and the server config.json file. To mitigate this vulnerability, it is crucial to update Mattermost to one of the patched versions: 6.4.2, 6.3.5, 6.2.5, or 5.37.9. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for github.com/mattermost/mattermost-server/v6 →
FAQ
Mattermost is an open-source messaging platform for secure team collaboration.
Mattermost versions 6.4.1 and earlier are affected by this vulnerability.
By exploiting this vulnerability, an attacker can gain unauthorized access to server logs and the server config.json file, potentially exposing sensitive information.
To fix this vulnerability, update your Mattermost installation to one of the patched versions: 6.4.2, 6.3.5, 6.2.5, or 5.37.9.
No specific workaround is mentioned for this vulnerability. Updating to the patched versions is the recommended solution.
Related vulnerabilities
Recent vulnerabilities recorded for github.com/mattermost/mattermost-server/v6.