What’s Vulnerable › Vulnerabilities
CVE-2021-28792
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-03-18 · updated 2026-06-17
Description
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.
Affected products
- Swift Development Environment Project Swift Development Environment: before 2.12.1 — fixed in 2.12.1
How to fix
Upgrade to a fixed version: Swift Development Environment Project Swift Development Environment 2.12.1. Check the vendor advisory for mitigations.
References
- https://github.com/vknabel/vscode-swift-development-environment/releases/tag/2.12.1
- https://vuln.ryotak.me/advisories/14
- https://github.com/vknabel/vscode-swift-development-environment/releases/tag/2.12.1
- https://vuln.ryotak.me/advisories/14
Get alerted when CVE-2021-28792 or the next vulnerability affects your stack