CVE-2022-40277: Joplin Remote Code Execution via malicious markdown links

CVE-2022-40277 · Severity: low · CVSS 3.1 · Published 2022-10-01

Joplin is a popular note-taking application that allows users to create and organize notes in markdown format. A vulnerability in version 2.8.8 allows an attacker to execute arbitrary commands on a user's computer by embedding malicious links in markdown files. When a user opens such a file in Joplin and clicks on the link, the attacker gains the ability to run any command with the user's privileges, potentially compromising the entire system.

Technologies: Joplin. Vendors: Joplin.

Quick answers

Is CVE-2022-40277 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-40277 being exploited in the wild.
How severe is CVE-2022-40277?
Low severity, with a CVSS score of 3.1, published 1 October 2022.
Which products and versions are affected?
Joplin up to 2.8.8.
Is there a fix for CVE-2022-40277?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2022-40277 attacked?
It is attacked with local access, in a software library.
Am I affected by CVE-2022-40277?
Check whether you run Joplin at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

This vulnerability is a command injection flaw (CWE-20: Improper Input Validation) in how Joplin processes links in markdown files. The application fails to properly validate the URI scheme/protocol of links before passing them to the shell.openExternal() function, which executes them at the OS level. An attacker can craft a markdown file with a malicious link using custom URI schemes that execute shell commands when clicked. The attack requires user interaction (clicking the link) but no authentication. The vulnerability affects Joplin version 2.8.8 and earlier versions. Patch information should be verified from the official Joplin repository.

Affected products

  • Joplin Joplin up to 2.8.8

Identifiers

  • CVE-2022-40277
  • GHSA-mjr5-v9c9-mm7g

Timeline

  • 2022-10-01: disclosed
  • 2022-09-30: other: NVD published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.