CVE-2024-39613: Mattermost desktop Mattermost Desktop App Uncontrolled Search Vulnerability
MODERATECVE-2024-39613 is a MODERATE (CVSS 5.3) mattermost desktop app uncontrolled search vulnerability (CWE-427: Uncontrolled Search Path Element) affecting Mattermost desktop libraries in the npm ecosystem. The issue involves mattermost desktop app uncontrolled search path vulnerability. Remediation is available by upgrading affected packages to version 5.9.0.
CVE-2024-39613 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L).
How to Fix CVE-2024-39613
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.9.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-39613, 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.9.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-427: Uncontrolled Search Path Element, where the product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors. 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-39613 Affected Mattermost desktop Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mattermost-desktop
|
npm |
< 5.9.0
|
5.9.0
|
References
Frequently Asked Questions
What is CVE-2024-39613?
Which Mattermost desktop versions are affected?
What version fixes CVE-2024-39613?
Is mattermost-desktop affected?
What is the CVSS score of CVE-2024-39613?
What CWE is associated with CVE-2024-39613?
How can I check npm dependencies for CVE-2024-39613?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wj4j-qc2m-fgh7",
"modified" : "2024-09-16T20:14:50Z",
"published" : "2024-09-16T14:37:28Z",
"aliases" : [ "CVE-2024-39613" ],
"summary" : "Mattermost Desktop App Uncontrolled Search Path Vulnerability",
"details" : "Mattermost Desktop App versions <=5.8.0 fail to specify an absolute path when searching the cmd.exe file, which allows a local attacker who is able to put an cmd.exe file in the Downloads folder of a user's machine to cause remote code execution on that machine.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "mattermost-desktop"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.9.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-39613"
}, {
"type" : "WEB",
"url" : "https://docs.mattermost.com/about/desktop-app-changelog.html"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mattermost/desktop"
}, {
"type" : "WEB",
"url" : "https://mattermost.com/security-updates"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-427" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-16T20:14:50Z",
"nvd_published_at" : "2024-09-16T07:15:02Z"
}
}