{"schema_version":"1.7.3","id":"GHSA-hjqh-j6rj-gh8q","published":"2022-05-24T17:21:03Z","modified":"2025-12-09T17:42:41.654181Z","aliases":["CVE-2017-18876","GO-2025-4187"],"summary":"Mattermost Server is vulnerable to Path Traversal when files are stored locally","details":"An issue was discovered in Mattermost Server before 4.3.0, 4.2.1, and 4.1.2 when local storage for files is used. A System Admin can test for the existence of an arbitrary file.","affected":[{"package":{"name":"github.com/mattermost/mattermost-server","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"4.1.2-0.20171004201910-6be8113eb60c"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-hjqh-j6rj-gh8q/GHSA-hjqh-j6rj-gh8q.json"}},{"package":{"name":"github.com/mattermost/mattermost-server","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.2.0-rc1.0.20171004154238-fadd9514f6e7"},{"fixed":"4.2.1-0.20171004194140-6d3cb2ce07fc"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-hjqh-j6rj-gh8q/GHSA-hjqh-j6rj-gh8q.json"}},{"package":{"name":"github.com/mattermost/mattermost-server","ecosystem":"Go","purl":"pkg:golang/github.com/mattermost/mattermost-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.3.0-rc1"},{"fixed":"4.3.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-hjqh-j6rj-gh8q/GHSA-hjqh-j6rj-gh8q.json"}}],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-18876"},{"type":"WEB","url":"https://github.com/mattermost/mattermost/commit/6be8113eb60cf5ddd2dc1c3f4db05cae0c183086"},{"type":"WEB","url":"https://github.com/mattermost/mattermost/commit/6d3cb2ce07fc799832081e93843b405b390057fa"},{"type":"WEB","url":"https://github.com/mattermost/mattermost/commit/fadd9514f6e71590aba781a7035e1de4150137b0"},{"type":"PACKAGE","url":"https://github.com/mattermost/mattermost"},{"type":"WEB","url":"https://mattermost.com/security-updates"}],"database_specific":{"cwe_ids":["CWE-22"],"github_reviewed":true,"github_reviewed_at":"2025-12-04T17:45:50Z","nvd_published_at":"2020-06-19T17:15:00Z","severity":"MODERATE"},"severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"}]}