CVE-2024-37182: Mattermost desktop Remote Code Execution Vulnerability
MODERATECVE-2024-37182 is a MODERATE (CVSS 4.7) remote code execution vulnerability (CWE-693: Protection Mechanism Failure) affecting Mattermost desktop libraries in the npm ecosystem. The issue involves mattermost desktop app remote code execution. Remediation is available by upgrading affected packages to version 5.8.0.
CVE-2024-37182 at a Glance
Security Impact
CVSS: 4.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2024-37182
To remediate this vulnerability, upgrade all affected Mattermost desktop dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install mattermost-desktop@5.8.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls mattermost-desktop
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-37182, inspect your project dependencies using npm:
npm ls mattermost-desktop
Analyze the terminal output to locate any version of Mattermost desktop in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.8.0), your application is affected.
Note: The npm ls mattermost-desktop command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-693: Protection Mechanism Failure, where the product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product. In Mattermost desktop, 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-37182 Affected Mattermost desktop Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mattermost-desktop
|
npm |
< 5.8.0
|
5.8.0
|
References
Frequently Asked Questions
What is CVE-2024-37182?
Which Mattermost desktop versions are affected?
What version fixes CVE-2024-37182?
Is mattermost-desktop affected?
What is the CVSS score of CVE-2024-37182?
What CWE is associated with CVE-2024-37182?
How can I check npm dependencies for CVE-2024-37182?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hvxg-77mg-vrvp",
"modified" : "2024-06-17T21:23:17Z",
"published" : "2024-06-14T09:31:17Z",
"aliases" : [ "CVE-2024-37182" ],
"summary" : "Mattermost Desktop App Remote Code Execution",
"details" : "Mattermost Desktop App versions <=5.7.0 fail to correctly prompt for permission when opening external URLs which allows a remote attacker to force a victim over the Internet to run arbitrary programs on the victim's system via custom URI schemes.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "mattermost-desktop"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.8.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-37182"
}, {
"type" : "WEB",
"url" : "https://github.com/mattermost/desktop/commit/1c9fc719dc2b74495a05f7ebc90e92e7daa03e6d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mattermost/desktop"
}, {
"type" : "WEB",
"url" : "https://mattermost.com/security-updates"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-693" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-17T21:23:17Z",
"nvd_published_at" : "2024-06-14T09:15:10Z"
}
}