CVE-2021-28792 Command injection in n/a
Remote attackers can execute arbitrary code by tricking users into opening a malicious workspace with crafted configuration values in the Swift Development Environment extension.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-28792?
CVE-2021-28792 is a high-severity command injection vulnerability in n/a, published on 18 Mar 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Which versions are affected by CVE-2021-28792?
It affects 1 product.
Products include Swift Development Environment Project Swift Development Environment.
How do I fix CVE-2021-28792?
No fix has been published for CVE-2021-28792 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2021-28792 being exploited?
There is no known exploitation of CVE-2021-28792 in the wild and no public exploit code.
Sources
Also known as GHSA-f4r2-649g-9gv5.