CVE-2024-39613 RCE in desktop app in Windows by local attacker
A local attacker can execute arbitrary code by placing a malicious cmd.exe in the user's Downloads folder due to insecure path resolution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-39613?
CVE-2024-39613 is a medium-severity path traversal vulnerability in Mattermost, published on 16 Sep 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-427
Which versions are affected by CVE-2024-39613?
2 open source packages ship an affected version, including mattermost-desktop. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mattermost-desktop npm | All versions | 5.9.0 |
mattermost-desktop npm | All versions | 5.9.0 |
Products include Mattermost Mattermost Desktop.
How do I fix CVE-2024-39613?
Upgrade mattermost-desktop to 5.9.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-39613 being exploited?
There is no known exploitation of CVE-2024-39613 in the wild and no public exploit code.
Other vulnerabilities in Mattermost
Sources
Also known as GHSA-wj4j-qc2m-fgh7.