Vulnerability Details : CVE-2021-28791
The unofficial SwiftFormat extension before 1.3.7 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted swiftformat.path configuration value that triggers execution upon opening the workspace.
Vulnerability category: Execute code
Products affected by CVE-2021-28791
- cpe:2.3:a:swiftformat_project:swiftformat:*:*:*:*:*:visual_studio_code:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-28791
0.29%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 68 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-28791
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.8
|
MEDIUM | AV:N/AC:M/Au:N/C:P/I:P/A:P |
8.6
|
6.4
|
NIST | |
7.8
|
HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
NIST |
CWE ids for CVE-2021-28791
-
The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. This allows attackers to bypass intended access restrictions.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-28791
-
https://github.com/vknabel/vscode-swiftformat/releases/tag/1.3.7
Release Banned some configs from workspaces · vknabel/vscode-swiftformat · GitHubRelease Notes;Third Party Advisory
-
https://vuln.ryotak.me/advisories/13
Advisory #13 - RyotaK's Vuln DBThird Party Advisory
Jump to