7.8high
The unofficial SwiftFormat extension before 1.3.7 for Visual Studio Code allows remote attackers to execute arbitrary code by constructing…
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 1.62% (higher than 76% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| swiftformat_project swiftformat | before 1.3.7 | NVD |
All scores
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
La extensión SwiftFormat no oficial versiones anteriores a 1.3.7 para Visual Studio Code, permite a atacantes remotos ejecutar código arbitrario mediante la construcción de un espacio de trabajo malicioso con un valor de configuración swiftformat.path diseñado que desencadena una ejecución tras abrir el espacio de trabajo
References
| https://github.com/vknabel/vscode-swiftformat/releases/tag/1.3.7 | release-notes, third-party-advisory | |
| https://vuln.ryotak.me/advisories/13 | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-28791 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-28791 changed 2026-06-17 | Public domain |