{"id":"CVE-2021-28789","aliases":["EUVD-2021-15446","GHSA-jc26-vp5p-2mv9"],"status":"published","title":"The unofficial apple/swift-format extension before 1.1.2 for Visual Studio Code allows remote...","description":"The unofficial apple/swift-format extension before 1.1.2 for Visual Studio Code 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.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.01714,"percentile":0.77726,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2021-03-18T15:05:52Z","modified":"2026-10-20T10:54:36Z","products":[{"vendor":"apple-swift-format_project","product":"apple-swift-format"}],"references":[{"url":"https://github.com/vknabel/vscode-apple-swift-format/releases/tag/1.1.2","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory"]},{"url":"https://vuln.ryotak.me/advisories/11","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28789"},{"url":"https://github.com/advisories/GHSA-jc26-vp5p-2mv9"}],"sources":{"cve":[{"id":"CVE-2021-28789","description":"The unofficial apple/swift-format extension before 1.1.2 for Visual Studio Code 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.","status":"published","published":"2021-03-18T15:05:52Z","modified":"2024-08-03T21:55:11.583Z","updated_at":"2026-11-02T14:33:09.175141Z"}],"euvd":[{"id":"EUVD-2021-15446","description":"The unofficial apple/swift-format extension before 1.1.2 for Visual Studio Code 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.","status":"published","published":"2021-03-18T15:05:52Z","modified":"2024-08-03T21:55:11Z","updated_at":"2026-11-03T03:24:46.117926Z"}],"ghsa":[{"id":"GHSA-jc26-vp5p-2mv9","title":"The unofficial apple/swift-format extension before 1.1.2 for Visual Studio Code allows remote...","description":"The unofficial apple/swift-format extension before 1.1.2 for Visual Studio Code 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.","status":"published","published":"2022-05-24T17:44:53Z","modified":"2024-04-04T03:05:04Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T14:56:13.24073Z"}],"nvd":[{"id":"CVE-2021-28789","description":"The unofficial apple/swift-format extension before 1.1.2 for Visual Studio Code 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.","status":"published","published":"2021-03-18T16:15:14.81Z","modified":"2026-06-17T03:46:51.93Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:06:50.805771Z"}],"osv":[{"id":"CVE-2021-28789","description":"The unofficial apple/swift-format extension before 1.1.2 for Visual Studio Code 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.","status":"published","published":"2021-03-18T16:15:14.81Z","modified":"2026-10-20T10:54:36.746581226Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:19.129331Z"}]}}
