PT-2021-17917 · Microsoft · Visual Studio Code
Ryotak
·
Published
2021-03-18
·
Updated
2021-04-22
·
CVE-2021-28791
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions:
SwiftFormat extension for Visual Studio Code versions prior to 1.3.7
Description:
The issue 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. This can be achieved by exploiting the vulnerability in the SwiftFormat extension for Visual Studio Code.Recommendations:
For versions prior to 1.3.7, update to version 1.3.7 or later to resolve the issue. As a temporary workaround, consider restricting the use of the
swiftformat.path configuration value to minimize the risk of exploitation.Fix
Incorrect Authorization
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Visual Studio Code