{"id":"CVE-2022-1332","aliases":["BIT-mattermost-2022-1332","EUVD-2022-1816","GHSA-qggc-pj29-j27m","GO-2022-0616"],"status":"published","title":"Restricted custom admin role can bypass the restrictions and view the server logs and server config.json file contents","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.","severity":{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.0065,"percentile":0.51504,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-200","CWE-269"],"published":"2022-04-13T17:06:03Z","modified":"2026-10-28T02:30:25Z","fixes":[{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","fixed_in":["6.4.2","6.3.5","6.2.5"],"sources":["ghsa","osv"]},{"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","fixed_in":["5.37.9"],"sources":["ghsa","osv"]},{"ecosystem":"Bitnami","package":"mattermost","fixed_in":["5.37.9","6.2.5","6.3.5","6.4.2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.4.0"},{"fixed":"6.4.2"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.3.0"},{"fixed":"6.3.5"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0"},{"fixed":"6.2.5"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.37.9"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"mattermost","ranges":[{"type":"SEMVER","events":[{"introduced":"5.37.0"},{"fixed":"5.37.9"},{"introduced":"6.2.0"},{"fixed":"6.2.5"},{"introduced":"6.3.0"},{"fixed":"6.3.5"},{"introduced":"6.4.0"},{"fixed":"6.4.2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","ranges":[{"type":"SEMVER","events":[{"introduced":"6.4.0"},{"fixed":"6.4.2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","ranges":[{"type":"SEMVER","events":[{"introduced":"6.3.0"},{"fixed":"6.3.5"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","ranges":[{"type":"SEMVER","events":[{"introduced":"6.0.0"},{"fixed":"6.2.5"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.37.9"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.37.9"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","ranges":[{"type":"SEMVER","events":[{"introduced":"6.0.0"},{"fixed":"6.2.5"},{"introduced":"6.3.0"},{"fixed":"6.3.5"},{"introduced":"6.4.0"},{"fixed":"6.4.2"}]}]}],"products":[{"vendor":"mattermost","product":"mattermost"},{"vendor":"mattermost","product":"mattermost_server"}],"references":[{"url":"https://mattermost.com/security-updates/","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1332","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-qggc-pj29-j27m","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1332.json","tags":["advisory"]},{"url":"https://github.com/mattermost/mattermost-server","tags":["package"]},{"url":"https://mattermost.com/security-updates","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2022-1332","title":"Restricted custom admin role can bypass the restrictions and view the server logs and server config.json file contents","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.","status":"published","published":"2022-04-13T17:06:03Z","modified":"2024-12-06T23:09:44.384Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T14:34:38.581997Z"}],"euvd":[{"id":"EUVD-2022-1816","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.","status":"published","published":"2022-04-13T17:06:03Z","modified":"2024-12-06T23:09:44Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-03T00:04:38.652605Z"}],"ghsa":[{"id":"GHSA-qggc-pj29-j27m","title":"Improper Privilege Management in Mattermost","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","status":"published","published":"2022-04-14T00:00:17Z","modified":"2023-02-02T23:05:14Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-200","CWE-269"],"updated_at":"2026-11-02T14:36:41.247728Z"}],"nvd":[{"id":"CVE-2022-1332","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.","status":"published","published":"2022-04-13T18:15:09.78Z","modified":"2026-06-17T04:22:14.08Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4,"vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-200","CWE-269"],"updated_at":"2026-11-02T14:07:15.414503Z"}],"osv":[{"id":"CVE-2022-1332","title":"Restricted custom admin role can bypass the restrictions and view the server logs and server config.json file contents","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.","status":"published","published":"2022-04-13T17:06:03Z","modified":"2026-10-28T02:30:25.875797069Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T15:44:23.245966Z"},{"id":"GHSA-qggc-pj29-j27m","title":"Improper Privilege Management in Mattermost","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","status":"published","published":"2022-04-14T00:00:17Z","modified":"2024-08-21T15:26:59.027927Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-200","CWE-269"],"updated_at":"2026-11-02T15:46:54.40888Z"},{"id":"BIT-mattermost-2022-1332","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.","status":"published","published":"2024-03-06T11:04:28.103Z","modified":"2025-04-03T14:40:37.652Z","updated_at":"2026-11-02T15:28:33.072289Z"},{"id":"GO-2022-0616","title":"Improper Privilege Management in Mattermost in github.com/mattermost/mattermost-server","description":"Improper Privilege Management in Mattermost in github.com/mattermost/mattermost-server","status":"published","published":"2024-08-21T15:11:40Z","modified":"2026-03-03T04:50:47.433459Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
