PT-2021-17915 · Apple · Apple/Swift-Format Extension For Visual Studio Code

Valentin Knabel

·

Published

2021-03-18

·

Updated

2022-05-20

·

CVE-2021-28789

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: apple/swift-format extension for Visual Studio Code version 1.1.1 and earlier
Description: The issue allows remote attackers to execute arbitrary code by constructing a malicious workspace with a crafted apple-swift-format.path configuration value that triggers execution upon opening the workspace.
Recommendations: For versions prior to 1.1.2, update to version 1.1.2 or later to resolve the issue. As a temporary workaround, consider restricting the use of the apple-swift-format.path configuration value to minimize the risk of exploitation.

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Related Identifiers

CVE-2021-28789

Affected Products

Apple/Swift-Format Extension For Visual Studio Code