GitHub Advisoryadvisory · Go

GHSA-hjqh-j6rj-gh8q Mattermost Server is vulnerable to Path Traversal when files are stored locally

MEDIUM Published 2022-05-24 Modified 2025-12-04 Official page ↗
Aliases
CVE-2017-18876
Ecosystem
Go
Packages
github.com/mattermost/mattermost-server
Severity
Moderate
CVSS vector
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
Weaknesses
CWE-22
Reviewed
2025-12-04

Affected packages

• Go github.com/mattermost/mattermost-server: < 4.1.2-0.20171004201910-6be8113eb60c → fixed in 4.1.2-0.20171004201910-6be8113eb60c • Go github.com/mattermost/mattermost-server: >= 4.2.0-rc1.0.20171004154238-fadd9514f6e7, < 4.2.1-0.20171004194140-6d3cb2ce07fc → fixed in 4.2.1-0.20171004194140-6d3cb2ce07fc • Go github.com/mattermost/mattermost-server: >= 4.3.0-rc1, < 4.3.0 → fixed in 4.3.0

Description

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.

Related

Alias · CVE (1)

  • CVE-2017-18876 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. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References