Loading...
Skip to main content

CVE-2024-39274 — Vulnerability in...

CRITICAL

Mattermost failed to properly validate that the channel that comes from the sync message is a shared channel

Published August 1, 2024Updated November 18, 2024Source: osv

Summary

Mattermost versions 9.9.x <= 9.9.0, 9.5.x <= 9.5.6, 9.7.x <= 9.7.5 and 9.8.x <= 9.8.1 fail to properly validate that the channel that comes from the sync message is a shared channel, when shared channels are enabled, which allows a malicious remote to add users to arbitrary teams and channels

Advisory Timeline

  • First published August 1, 2024 (802 days ago).
  • Last revised November 18, 2024 — 109 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/mattermost/mattermost/server/v8 to 9.8.2 or later
go get github.com/mattermost/mattermost/server/v8@v9.8.2
Go
Update github.com/mattermost/mattermost/server/v8 to 9.9.1 or later
go get github.com/mattermost/mattermost/server/v8@v9.9.1
Go
Update github.com/mattermost/mattermost/server/v8 to 9.5.7 or later
go get github.com/mattermost/mattermost/server/v8@v9.5.7
Go
Update github.com/mattermost/mattermost/server/v8 to 9.7.6 or later
go get github.com/mattermost/mattermost/server/v8@v9.7.6

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: go (1).

Vulnerability Classification

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

CVSS Score Breakdown

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

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

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

Frequently Asked Questions

What is CVE-2024-39274?
Mattermost failed to properly validate that the channel that comes from the sync message is a shared channel This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 8.7/10).
How do I check if my project is affected by CVE-2024-39274?
CVE-2024-39274 affects github.com/mattermost/mattermost/server/v8. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-39274 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.7

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-cmc8-222c-vqp9
GO-2024-3028

Related CVEs

  • CVE-2025-12419
    CRITICAL

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

  • CVE-2025-25279
    CRITICAL

    Mattermost allows reading arbitrary files related to importing boards

  • CVE-2026-3108
    HIGH

    Mattermost allows attackers to manipulate administrator terminals via crafted messages containing ANSI and OSC escape sequences

  • 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-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

  • CVE-2026-24458
    HIGH

    Mattermost fails to properly handle very long passwords

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies