CVE-2021-30502

The unofficial vscode-ghc-simple (aka Simple Glasgow Haskell Compiler) extension before 0.2.3 for Visual Studio Code allows remote code execution via a crafted…

published April 25, 2021

CVSS
—
EPSS
3%
Percentile
86.8
In the wild
Unconfirmed
What it is

⚠️ A cleverly crafted workspace could become a hacker's playground! The unofficial vscode-ghc-simple extension is vulnerable to remote code execution before version 0.2.3! 🔥 Think of your workspace configuration like a restaurant's menu. If the chef doesn't check the ingredients before serving a dish, a sneaky diner can request something dangerous that wasn't on the approved list – and boom, chaos ensues! An attacker could exploit this flaw to execute arbitrary code in your workspace, potentially causing all kinds of havoc from data breaches to system compromise. It’s like letting someone into your kitchen who could start cooking up a storm with no one watching!

Put simply

Think of your workspace configuration like a restaurant's menu. If the chef doesn't check the ingredients before serving a dish, a sneaky diner can request something dangerous that wasn't on the approved list – and boom, chaos ensues! This vulnerability arises from a lack of validation in the replCommand setting within the vscode-ghc-simple extension, allowing for malicious commands to be executed if the workspace configuration is crafted just right.

What to do

An attacker could exploit this flaw to execute arbitrary code in your workspace, potentially causing all kinds of havoc from data breaches to system compromise. It’s like letting someone into your kitchen who could start cooking up a storm with no one watching! Upgrade to version 0.2.3 of the vscode-ghc-simple extension immediately to close this remote code execution vulnerability. Additionally, review workspace configurations to ensure they adhere to safe coding practices. 🛡️ You've got this! With a quick update and careful attention, you can secure your workspace in no time! 💪✨

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02899 · 86.8th percentile
Published
2021-04-25T02:55Z
EPSS history
Timeline
  • 25 APR 02:55Z
    The unofficial vscode-ghc-simple (aka Simple Glasgow Haskell Compiler) extension before 0.2.3 for Visual Studio Code allows remote code execution via a crafted…
    cvelistv5