Auth bypass in Swiftformat Project
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 class: Broken Access Control
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.016 (75.2th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 75th percentile — 75.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.016 · newest: 0.016 · change: 0.000
Affected products
Weakness classification (CWE)
References
- github.com/vknabel/vscode-swiftformat/releases/tag/1.3.7 (Third Party Advisory, Release Notes)
- vuln.ryotak.me/advisories/13 (Third Party Advisory)
Frequently asked questions
- What is CVE-2021-28791?
- CVE-2021-28791 is a high-severity vulnerability in Swiftformat Project, classified under Incorrect Authorization. CVSS score: 7.8/10. Published 2021-03-18.
- How severe is CVE-2021-28791?
- High severity. CVSS v3 base score is 7.8 out of 10.