CVE-2022-1332: Mattermost Server API Permissions Bypass

mattermost Updated 02 Oct 2025

Summary

06/03/2024
Yes i
Medium
Not published

CVE-2022-1332: 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 lo... Affects mattermost across 4 version ranges.

>= 5.37.0, < 5.37.9 >= 6.2.0, < 6.2.5 >= 6.3.0, < 6.3.5 >= 6.4.0, < 6.4.2

Fixed in 4 releases; the minimum fixed version depends 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 Your last release was probably never penetration tested 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 designed for team collaboration. It provides features such as instant messaging, file sharing, and integrations with other tools. The Mattermost Server API allows users to interact with the platform programmatically. However, in versions 6.4.1 and earlier, a vulnerability exists that allows authenticated members with restricted custom admin roles to bypass permissions and access sensitive information.

Vulnerability Detail

The vulnerability in Mattermost Server API version 6.4.1 and earlier arises from a failure to properly protect permissions. This flaw enables users with restricted custom admin roles to bypass the intended restrictions and gain unauthorized access to server logs and the server config.json file. By exploiting this vulnerability, an attacker could potentially obtain sensitive information, leading to further compromise of the Mattermost instance.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 5.37.0, < 5.37.9 5.37.9
  • >= 6.2.0, < 6.2.5 6.2.5
  • >= 6.3.0, < 6.3.5 6.3.5
  • >= 6.4.0, < 6.4.2 6.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

As a temporary workaround, users can restrict access to the server logs and config.json file by modifying the file permissions. By setting appropriate access controls, the impact of the vulnerability can be mitigated. However, this is not a permanent solution, and it is still crucial to update to the latest version of Mattermost to fully address the vulnerability.

Conclusion

The vulnerability in Mattermost Server API versions 6.4.1 and earlier allows users with restricted custom admin roles to bypass permissions and access sensitive information. To mitigate this issue, it is recommended to update Mattermost to version 6.4.2 or later. Additionally, restricting access to the server logs and config.json file can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for mattermost →

Share this vulnerability

FAQ

Mattermost is an open-source messaging platform designed for team collaboration. It provides features such as instant messaging, file sharing, and integrations with other tools.

This vulnerability allows authenticated members with restricted custom admin roles to bypass permissions and access server logs and the server config.json file. It could potentially lead to unauthorized access to sensitive information and further compromise of the Mattermost instance.

Mattermost versions 6.4.1 and earlier are affected by this vulnerability.

To fix this vulnerability, it is recommended to update Mattermost to version 6.4.2 or later. This update includes the necessary fixes to properly protect permissions in the affected API.

As a temporary workaround, users can restrict access to the server logs and config.json file by modifying the file permissions. However, it is still crucial to update to the latest version of Mattermost to fully address the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for mattermost.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 5.37.0, < 5.37.9 5.37.9
  • >= 6.2.0, < 6.2.5 6.2.5
  • >= 6.3.0, < 6.3.5 6.3.5
  • >= 6.4.0, < 6.4.2 6.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