Skip to main content

CVE-2017-18885 — Vulnerability in mattermost/mattermost-server

CRITICAL

Mattermost Server allows attackers to gain privileges by accessing unintended API endpoints with users' credentials

Published May 24, 2022Updated January 6, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.18%). Schedule for your next planned update.

Does your project use an affected github.com/mattermost/mattermost-server version?

Paste your go.sum to check it for CVE-2017-18885 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

An issue was discovered in Mattermost Server before 4.3.0, 4.2.1, and 4.1.2. It allows attackers to gain privileges by accessing unintended API endpoints on a user's behalf.

Advisory Timeline

  • First published May 24, 2022 (1647 days ago).
  • Last revised January 6, 2026 — 1323 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/mattermost/mattermost-server to 4.2.1 or later
go get github.com/mattermost/mattermost-server@v4.2.1
Go
Update github.com/mattermost/mattermost-server to 4.3.0 or later
go get github.com/mattermost/mattermost-server@v4.3.0
Go
Update github.com/mattermost/mattermost-server to 4.1.2 or later
go get github.com/mattermost/mattermost-server@v4.1.2

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/mattermost/mattermost-server Go · Affected: All versions4.2.1
github.com/mattermost/mattermost-server Go · Affected: All versions4.3.0
github.com/mattermost/mattermost-server Go · Affected: All versions4.1.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-269
    Improper Privilege ManagementMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2017-18885?
Mattermost Server allows attackers to gain privileges by accessing unintended API endpoints with users' credentials. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2017-18885?
CVE-2017-18885 affects github.com/mattermost/mattermost-server. It has a 1.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2017-18885 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
1.18%
EPSS percentile: 67.7

This is an above-median EPSS score — 67.7% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-g78f-6xq7-rrhq
GO-2025-4200

Related CVEs

  • CVE-2017-18908
    CRITICAL

    Mattermost Server password reset email requests can be sent to attacker-provided email addresses

  • CVE-2025-12419
    CRITICAL

    Mattermost fails to properly validate OAuth state tokens during OpenID Connect authentication

  • CVE-2017-18900
    CRITICAL

    Mattermost Server is vulnerable CSV Injection

  • CVE-2026-7387
    HIGH

    Mattermost doesn't require role-management authorization when setting the scheme_admin flag on group syncable link and patch endpoints

  • CVE-2025-58073
    HIGH

    Mattermost has a Missing Authorization vulnerability

  • CVE-2026-6347
    HIGH

    Mattermost doesn't sanitize sensitive configuration fields in the Mattermost Calls plugin

  • CVE-2026-6961
    HIGH

    Mattermost doesn't sanitize FileInfo.Name received from federated peers during shared channel file sync

  • CVE-2026-6346
    HIGH

    Mattermost doesn't sanitize sensitive configuration fields before including them in support packet generation

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum