CVE-2021-28792
Swift Development Environment Project Swift Development Environment vulnerability
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. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Swift Development Environment Project Swift Development Environment runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/vknabel/vscode-swift-development-environment/releases/tag/2.12.1 · Third Party Advisory
- vuln.ryotak.me/advisories/14 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-28792
- cve.org/CVERecord?id=CVE-2021-28792
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.