{"id":"CVE-2021-21415","published":"2021-04-29T16:50:15Z","modified":"2024-08-03T18:09:16Z","title":"Visual Studio Code Prisma Extension Remote Code Execution Vulnerability","vendor":"prisma","product":"language-tools","tier":"tail","description":{"text":"Prisma VS Code a VSCode extension for Prisma schema files. This is a Remote Code Execution Vulnerability that affects all versions of the Prisma VS Code extension older than 2.20.0. If a custom binary path for the Prisma format binary is set in VS Code Settings, for example by downloading a project that has a .vscode/settings.json file that sets a value for \"prismaFmtBinPath\". That custom binary is executed when auto-formatting is triggered by VS Code or when validation checks are triggered after each keypress on a *.prisma file. Fixed in versions 2.20.0 and 20.0.27. As a workaround users can either edit or delete the `.vscode/settings.json` file or check if the binary is malicious and delete it.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02327,"percentile":0.83847,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/prisma/language-tools/security/advisories/GHSA-4rf9-43m7-x828","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/prisma/language-tools/pull/750","tags":["x_refsource_MISC"]},{"url":"https://marketplace.visualstudio.com/items?itemName=Prisma.prisma","tags":["x_refsource_MISC"]},{"url":"https://marketplace.visualstudio.com/items?itemName=Prisma.prisma-insider","tags":["x_refsource_MISC"]}],"priority":{"score":22.2,"factors":[{"name":"EPSS percentile","points":16.77},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"prisma","affectedVersions":[{"vendor":"prisma","product":"language-tools","versions":[">= 2.1.0, < 2.20.0","< 20.0.27"]}],"euvd":{"id":"EUVD-2021-8703","exploited":false,"provenance":"source"}}