CVE-2022-40277 Joplin Remote Code Execution
Attackers can execute arbitrary commands on Joplin clients by tricking users into opening malicious markdown files with unsafe links.
- 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
- None listed
What is CVE-2022-40277?
CVE-2022-40277 is a high-severity command injection vulnerability in Joplin, published on 30 Sep 2022. 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
Joplin version 2.8.8 allows an external attacker to execute arbitrary commands remotely on any client that opens a link in a malicious markdown file, via Joplin. This is possible because the application does not properly validate the schema/protocol of existing links in the markdown file before passing them to the 'shell.openExternal' function.
Weakness: CWE-20
Which versions are affected by CVE-2022-40277?
2 open source packages ship an affected version, including joplin. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
joplin npm | All versions to 2.8.8 | None |
joplin npm | All versions to 2.8.8 | None |
Products include Joplinapp Joplin.
How do I fix CVE-2022-40277?
No fix has been published for CVE-2022-40277 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-40277 being exploited?
There is no known exploitation of CVE-2022-40277 in the wild and no public exploit code.
Other vulnerabilities in Joplin
Sources
Also known as GHSA-mjr5-v9c9-mm7g.