Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-28792

The unofficial Swift Development Environment extension before 2.12.1 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted sourcekit-lsp.serverPath, swift.languageServerPath, swift.path.sourcekite, swift.path.sourcekiteDockerMode, swift.path.swift_driver_bin, or swift.path.shell configuration value that triggers execution upon opening the workspace.

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

Source evidence

CVE-2021-28792

core-osv · Original source

Published 18 Mar 2021, 16:15 UTC

The unofficial Swift Development Environment extension before 2.12.1 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted sourcekit-lsp.serverPath, swift.languageServerPath, swift.path.sourcekite, swift.path.sourcekiteDockerMode, swift.path.swift_driver_bin, or swift.path.shell configuration value that triggers execution upon opening the workspace.

osv:CVE-2021-28792
Complete source record
{
  "id": "5d251d9d0ef7fca60d14aeac5d55f55565ee38c60a6fb3e9c7c690353ed85808",
  "url": "https://osv.dev/vulnerability/CVE-2021-28792",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-28792",
    "summary": "The unofficial Swift Development Environment extension before 2.12.1 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted sourcekit-lsp.serverPath, swift.languageServerPath, swift.path.sourcekite, swift.path.sourcekiteDockerMode, swift.path.swift_driver_bin, or swift.path.shell configuration value that triggers execution upon opening the workspace.",
    "evidence": "osv:CVE-2021-28792",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-28792",
      "aliases": [
        "CVE-2021-28792"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/vknabel/vscode-swift-development-environment",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "fc28a1d2a5e16a8396bee1ba0da3c837b8d85c18"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:swift_development_environment_project:swift_development_environment:*:*:*:*:*:visual_studio_code:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.12.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "fc28a1d2a5e16a8396bee1ba0da3c837b8d85c18"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "2.12.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.12.0",
            "2.11.2",
            "2.11.1",
            "2.11.0",
            "2.11.0-beta.0",
            "2.10.1",
            "2.10.0",
            "2.9.1",
            "2.9.0",
            "2.8.3",
            "2.8.2",
            "2.8.1",
            "2.8.0",
            "2.7.1",
            "2.7.0",
            "2.6.0",
            "2.5.2",
            "2.5.1",
            "2.5.0",
            "2.4.3",
            "2.4.2",
            "2.4.1",
            "2.4.0",
            "2.3.2",
            "2.3.1",
            "2.3.1-beta.0",
            "2.3.0",
            "2.2.0",
            "2.1.3",
            "2.1.2",
            "2.1.1",
            "2.1.0",
            "2.0.20170209",
            "2.0.20170206",
            "1.0.20170129"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-28792.json"
          }
        }
      ],
      "modified": "2026-10-20T10:53:42.621011812Z",
      "provider": "osv",
      "references": [
        "https://github.com/vknabel/vscode-swift-development-environment/releases/tag/2.12.1",
        "https://vuln.ryotak.me/advisories/14"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-28792",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384525,
  "published_at": "2021-03-18T16:15:14.997+00:00"
}