CVE-2022-1332: Improper Privilege Management in Mattermost

Summary

14/04/2022
Yes i
Moderate
4.3

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

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.

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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.5 6.2.5
    go get github.com/mattermost/mattermost-server/v6@v6.2.5
  • >= 6.3.0, < 6.3.5 6.3.5
    go get github.com/mattermost/mattermost-server/v6@v6.3.5
  • >= 6.4.0, < 6.4.2 6.4.2
    go 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 →

Share this vulnerability

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.

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.5 6.2.5
    go get github.com/mattermost/mattermost-server/v6@v6.2.5
  • >= 6.3.0, < 6.3.5 6.3.5
    go get github.com/mattermost/mattermost-server/v6@v6.3.5
  • >= 6.4.0, < 6.4.2 6.4.2
    go 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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback