{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.12.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "fc28a1d2a5e16a8396bee1ba0da3c837b8d85c18"
            }
          ],
          "repo": "https://github.com/vknabel/vscode-swift-development-environment",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2021-28792",
  "modified": "2026-04-01T23:10:32.368269263Z",
  "published": "2021-03-18T16:15:14.997Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/vknabel/vscode-swift-development-environment/releases/tag/2.12.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuln.ryotak.me/advisories/14"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}