{"id":"CVE-2021-28789","aliases":["CVE-2021-28789"],"related":[],"kind":"vulnerability","state":"published","title":"The unofficial apple/swift-format extension before 1.1.2 for Visual Studio Code allows remote attackers to execute arbitrary code by constr…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"La extensión apple/swift-format no oficial versiones anteriores a 1.1.2 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 apple-swift-format.path diseñado que desencadena una ejecución tras abrir el espacio de trabajo","source":"nvd"}],"published":"2021-03-18T15:05:52.000Z","modified":"2026-06-17T03:46:51.930Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.1.2"}],"vendor":"apple-swift-format_project","product":"apple-swift-format","cpe":"cpe:2.3:a:apple-swift-format_project:apple-swift-format:*:*:*:*:*:visual_studio:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vknabel/vscode-apple-swift-format/releases/tag/1.1.2","tags":["release-notes","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://vuln.ryotak.me/advisories/11","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-28789","url":"https://www.cve.org/CVERecord?id=CVE-2021-28789","licence":"CVE Terms of Use","modified":"2024-08-03T21:55:11.583Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-28789","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28789","licence":"Public domain","modified":"2026-06-17T03:46:51.930Z"}],"updatedAt":"2026-11-25T22:58:00.332Z","epss":{"score":0.01714,"percentile":0.78081,"date":"2026-12-01T12:00:22.000Z"}}