{"id":"CVE-2022-1332","aliases":["CVE-2022-1332","GHSA-qggc-pj29-j27m","BIT-MATTERMOST-2022-1332","GO-2022-0616"],"related":[],"kind":"vulnerability","state":"published","title":"Restricted custom admin role can bypass the restrictions and view the server logs and server config.json file contents","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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","format":"markdown","source":"ghsa"},{"lang":"en","text":"Improper Privilege Management in Mattermost in github.com/mattermost/mattermost-server","format":"markdown","source":"go"},{"lang":"es","text":"Una de las API de Mattermost versiones 6.4.1 y anteriores, no protegen apropiadamente los permisos, lo que permite a miembros autenticados con un rol de administrador personalizado restringido omitir las restricciones y visualizar los registros del servidor y el contenido del archivo config.json del servidor","source":"nvd"}],"published":"2022-04-13T17:06:03.000Z","modified":"2026-06-17T04:22:14.080Z","severity":{"scorer":"Mattermost","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"Mattermost","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","score":4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-200","CWE-269"],"affected":[{"ranges":[{"type":"custom","introduced":"6.4","fixed":"6.4.2","status":"affected"},{"type":"custom","introduced":"6.3","fixed":"6.3.5","status":"affected"},{"type":"custom","introduced":"6.2","fixed":"6.2.5","status":"affected"},{"type":"custom","introduced":"5.37","fixed":"5.37.9","status":"affected"}],"vendor":"Mattermost","product":"Mattermost","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"6.4.0","status":"affected","fixed":"6.4.2"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","purl":"pkg:golang/github.com/mattermost/mattermost-server/v6","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"6.3.0","status":"affected","fixed":"6.3.5"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","purl":"pkg:golang/github.com/mattermost/mattermost-server/v6","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.2.5"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","purl":"pkg:golang/github.com/mattermost/mattermost-server/v6","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.37.9"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","purl":"pkg:golang/github.com/mattermost/mattermost-server/v5","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost-server","purl":"pkg:golang/github.com/mattermost/mattermost-server","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.37.9"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v5","purl":"pkg:golang/github.com/mattermost/mattermost-server/v5","source":"go"},{"ranges":[{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.2.5"},{"type":"semver","introduced":"6.3.0","status":"affected","fixed":"6.3.5"},{"type":"semver","introduced":"6.4.0","status":"affected","fixed":"6.4.2"}],"ecosystem":"Go","package":"github.com/mattermost/mattermost-server/v6","purl":"pkg:golang/github.com/mattermost/mattermost-server/v6","source":"go"},{"ranges":[{"status":"affected","introduced":"5.37.0","fixed":"5.37.9"},{"status":"affected","introduced":"6.2.0","fixed":"6.2.5"},{"status":"affected","introduced":"6.3.0","fixed":"6.3.5"},{"status":"affected","introduced":"6.4.0","fixed":"6.4.2"}],"vendor":"mattermost","product":"mattermost_server","cpe":"cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"5.37.0","status":"affected","fixed":"5.37.9"},{"type":"semver","introduced":"6.2.0","status":"affected","fixed":"6.2.5"},{"type":"semver","introduced":"6.3.0","status":"affected","fixed":"6.3.5"},{"type":"semver","introduced":"6.4.0","status":"affected","fixed":"6.4.2"}],"ecosystem":"Bitnami","package":"mattermost","purl":"pkg:bitnami/mattermost","source":"bitnami"}],"references":[{"url":"https://mattermost.com/security-updates/","tags":["vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1332","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/mattermost/mattermost-server","tags":["package"],"sources":["ghsa"]},{"url":"https://mattermost.com/security-updates","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-qggc-pj29-j27m","tags":["advisory"],"sources":["go"]}],"credits":["Thanks to Rohitesh Gupta for contributing to this improvement under the Mattermost responsible disclosure policy."],"assigner":"Mattermost","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-12-06T22:53:04.437Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-1332","url":"https://www.cve.org/CVERecord?id=CVE-2022-1332","licence":"CVE Terms of Use","modified":"2024-12-06T23:09:44.384Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qggc-pj29-j27m","url":"https://github.com/advisories/GHSA-qggc-pj29-j27m","licence":"CC-BY-4.0","modified":"2024-08-21T15:26:59.027Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0616","url":"https://pkg.go.dev/vuln/GO-2022-0616","licence":"CC-BY-4.0","modified":"2026-03-03T04:50:47.433Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-1332","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1332","licence":"Public domain","modified":"2026-06-17T04:22:14.080Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MATTERMOST-2022-1332","url":"https://osv.dev/vulnerability/BIT-MATTERMOST-2022-1332","licence":"Apache-2.0","modified":"2025-04-03T14:40:37.652Z"}],"updatedAt":"2026-11-25T22:58:10.609Z","epss":{"score":0.0065,"percentile":0.52459,"date":"2026-12-01T12:00:22.000Z"}}