CVE-2022-45026

An issue in Markdown Preview Enhanced v0.6.5 and v0.19.6 for VSCode and Atom allows attackers to execute arbitrary commands during the GFM export process

Critical · published December 7, 2022

CVSS v3.1
9.8
EPSS
1%
Percentile
62.7
In the wild
Unconfirmed
What it is

🚨 A crafty command execution vulnerability in Markdown Preview Enhanced has surfaced, letting attackers run arbitrary commands during the GFM export process! 🔥 Think of it like a sneaky kitchen where a chef can suddenly take orders from anyone walking in, mixing up dangerous ingredients without checking their credentials. In this case, the Markdown preview is the chef, and the arbitrary commands are the secret recipes getting cooked up! An attacker could exploit this vulnerability to execute any command they desire, potentially compromising the entire system. This could lead to unauthorized data manipulation, complete control over the application, or even worse—total system takeover. It’s an absolutely devastating risk that cannot be ignored!

Put simply

Think of it like a sneaky kitchen where a chef can suddenly take orders from anyone walking in, mixing up dangerous ingredients without checking their credentials. In this case, the Markdown preview is the chef, and the arbitrary commands are the secret recipes getting cooked up! This vulnerability allows attackers to execute arbitrary commands during the export process of GitHub Flavored Markdown (GFM) in Markdown Preview Enhanced for VSCode and Atom versions 0.6.5 and 0.19.6, due to improper input handling.

What to do

An attacker could exploit this vulnerability to execute any command they desire, potentially compromising the entire system. This could lead to unauthorized data manipulation, complete control over the application, or even worse—total system takeover. It’s an absolutely devastating risk that cannot be ignored! Patch to version 0.6.6 or 0.19.7 immediately to close this gap, and consider reviewing your export processes for any additional security measures. It's also a good idea to restrict who can access export functionalities until patched. Stay vigilant! You've got this! Follow these steps, and you'll be safeguarding your markdown like a pro! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01009 · 62.7th percentile
Published
2022-12-07T00:00Z
EPSS history
Timeline
  • 07 DEC 00:00Z
    An issue in Markdown Preview Enhanced v0.6.5 and v0.19.6 for VSCode and Atom allows attackers to execute arbitrary commands during the GFM export process
    cvelistv5