CVE-2024-1402: Github.com/mattermost/mattermost/server/v8 Denial of Service Vulnerability
MODERATECVE-2024-1402 is a MODERATE (CVSS 4.3) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/mattermost/mattermost/server/v8 libraries in the Go ecosystem. The issue involves mattermost vulnerable to denial of service via large number of emoji reactions. Remediation is available by upgrading affected packages to version 8.1.8, 9.2.4, 9.1.5.
CVE-2024-1402 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2024-1402
To remediate this vulnerability, upgrade all affected Github.com/mattermost/mattermost/server/v8 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/mattermost/mattermost/server/v8 to 8.1.8
Upgrade github.com/mattermost/mattermost/server/v8 to 9.2.4
Upgrade github.com/mattermost/mattermost/server/v8 to 9.1.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/mattermost/mattermost/server/v8
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-1402, inspect your project dependencies for Github.com/mattermost/mattermost/server/v8:
inspect dependencies for github.com/mattermost/mattermost/server/v8
Analyze the terminal output to locate any version of Github.com/mattermost/mattermost/server/v8 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.1.8), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Github.com/mattermost/mattermost/server/v8, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-1402 Affected Github.com/mattermost/mattermost/server/v8 Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/mattermost/mattermost/server/v8
|
Go |
< 8.1.8
|
8.1.8
|
|
github.com/mattermost/mattermost/server/v8
|
Go |
≥ 9.2.0
< 9.2.4
|
9.2.4
|
|
github.com/mattermost/mattermost/server/v8
|
Go |
≥ 9.1.0
< 9.1.5
|
9.1.5
|
References
Frequently Asked Questions
What is CVE-2024-1402?
Which Github.com/mattermost/mattermost/server/v8 versions are affected?
What version fixes CVE-2024-1402?
Is github.com/mattermost/mattermost/server/v8 affected?
What is the CVSS score of CVE-2024-1402?
What CWE is associated with CVE-2024-1402?
How can I check Go dependencies for CVE-2024-1402?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-32h7-7j94-8fc2",
"modified" : "2025-02-19T15:34:17Z",
"published" : "2024-02-09T18:31:07Z",
"aliases" : [ "CVE-2024-1402" ],
"summary" : "Mattermost vulnerable to denial of service via large number of emoji reactions",
"details" : "Mattermost fails to check if a custom emoji reaction exists when sending it to a post and to limit the amount of custom emojis allowed to be added in a post, allowing an attacker sending a huge amount of non-existent custom emojis in a post to crash the mobile app of a user seeing the post. Fetching posts with huge amounts of reactions results in Uncontrolled Resource Consumption.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/mattermost/mattermost/server/v8"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.1.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/mattermost/mattermost/server/v8"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.2.0"
}, {
"fixed" : "9.2.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/mattermost/mattermost/server/v8"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.1.0"
}, {
"fixed" : "9.1.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-1402"
}, {
"type" : "WEB",
"url" : "https://github.com/mattermost/mattermost/commit/64cb0ca8af2dbda1afcddd1604460591a4799b81"
}, {
"type" : "WEB",
"url" : "https://github.com/mattermost/mattermost/commit/6d2440de9fd774b67e65e3aac4ab8b6ef9aba2d8"
}, {
"type" : "WEB",
"url" : "https://github.com/mattermost/mattermost/commit/81190e2da128a6985914ea7023a69ac400513fc4"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mattermost/mattermost"
}, {
"type" : "WEB",
"url" : "https://mattermost.com/security-updates"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-09T21:35:00Z",
"nvd_published_at" : "2024-02-09T16:15:07Z"
}
}