CVE-2021-28790: SwiftLint Extension - Remote Code Execution
- Cve: CVE-2021-28790
- Name: SwiftLint Extension - Remote Code Execution
- Description: The unofficial SwiftLint extension before 1.4.5 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted swiftlint.path configuration value that triggers execution upon opening the workspace.
- Impact: Attackers can execute arbitrary code remotely by crafting malicious workspace configurations, leading to full system compromise.
- Remediation: Update to version 1.4.5 or later of the SwiftLint extension.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker needs victim to open a malicious workspace
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.01678
- Epss percentile: 0.77391
- Assignee: [email protected]
- Published at: 2021-03-18T16:15:14Z
- Age in days: 2077
- Modified at: 2026-06-17T03:46:52Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-28790
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-noinfo | — |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/vknabel/vscode-swiftlint/releases/tag/1.4.5 | nvd | Release Notes, Third Party Advisory |
| https://vuln.ryotak.me/advisories/12 | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| swiftlint_project:swiftlint | < 1.4.5 | no | nvd | /v1/products/swiftlint_project/swiftlint |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| vknabel/vscode-swiftlint | releases | yes | /v1/repositories/vknabel/vscode-swiftlint |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts