Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: 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 workspace configuration with replCommand.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-30502
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:45 UTC · Revision 1

Source evidence

CVE-2021-30502

core-osv · Original source

Published 25 Apr 2021, 03:15 UTC

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 workspace configuration with replCommand.

osv:CVE-2021-30502
Complete source record
{
  "id": "2383ffa890ce68ba991934aa628b1f89df7797f57373385d56d162838befd61c",
  "url": "https://osv.dev/vulnerability/CVE-2021-30502",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-30502",
    "summary": "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 workspace configuration with replCommand.",
    "evidence": "osv:CVE-2021-30502",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-30502",
      "aliases": [
        "CVE-2021-30502"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/dramforever/vscode-ghc-simple",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "b883e7ba59a3daf3db22c58d8a85dd0648a4dc74"
                },
                {
                  "fixed": "bc7f6f0b857dade46ea51496d8bd1a4edef39b46"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:simple_glasgow_haskell_compiler_project:simple_glasgow_haskell_compiler:*:*:*:*:*:visual_studio_code:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.2.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "bc7f6f0b857dade46ea51496d8bd1a4edef39b46"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.2.2",
            "v0.2.1",
            "v0.2.0",
            "v0.1.24",
            "v0.1.23",
            "v0.1.22",
            "v0.1.20",
            "v0.1.19",
            "v0.1.18",
            "v0.1.17",
            "v0.1.16",
            "v0.1.15",
            "v0.1.14",
            "v0.1.13",
            "v0.1.12",
            "v0.1.11",
            "v0.1.10",
            "v0.1.9",
            "v0.1.8",
            "v0.1.7",
            "v0.1.6",
            "v0.1.5",
            "v0.1.4",
            "v0.1.3",
            "v0.1.2",
            "v0.1.1",
            "v0.1.0",
            "v0.0.10",
            "v0.0.8",
            "v0.0.7",
            "v0.0.6",
            "v0.0.5",
            "v0.0.4",
            "v0.0.3",
            "v0.0.2",
            "v0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-30502.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:40.016800580Z",
      "provider": "osv",
      "references": [
        "https://github.com/dramforever/vscode-ghc-simple/blob/master/CHANGELOG.md#v023",
        "https://github.com/dramforever/vscode-ghc-simple/releases",
        "https://vuln.ryotak.me/advisories/38",
        "https://github.com/dramforever/vscode-ghc-simple/commit/bc7f6f0b857dade46ea51496d8bd1a4edef39b46"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-30502",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385835,
  "published_at": "2021-04-25T03:15:07.203+00:00"
}