{"api_version":"1","generated_at":"2026-07-23T20:07:30+00:00","cve":"CVE-2021-21415","urls":{"html":"https://cve.report/CVE-2021-21415","api":"https://cve.report/api/cve/CVE-2021-21415.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21415","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21415"},"summary":{"title":"CVE-2021-21415","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-04-29 17:15:00","updated_at":"2022-10-21 22:43:00"},"problem_types":["NVD-CWE-Other"],"metrics":[],"references":[{"url":"https://github.com/prisma/language-tools/pull/750","name":"https://github.com/prisma/language-tools/pull/750","refsource":"MISC","tags":[],"title":"feat: introduce explicit allow prompts for custom binaries by pantharshit00 · Pull Request #750 · prisma/language-tools · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/prisma/language-tools/security/advisories/GHSA-4rf9-43m7-x828","name":"https://github.com/prisma/language-tools/security/advisories/GHSA-4rf9-43m7-x828","refsource":"CONFIRM","tags":[],"title":"Visual Studio Code Prisma Extension Remote Code Execution Vulnerability · Advisory · prisma/language-tools · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://marketplace.visualstudio.com/items?itemName=Prisma.prisma","name":"https://marketplace.visualstudio.com/items?itemName=Prisma.prisma","refsource":"MISC","tags":[],"title":"Prisma - Visual Studio Marketplace","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://marketplace.visualstudio.com/items?itemName=Prisma.prisma-insider","name":"https://marketplace.visualstudio.com/items?itemName=Prisma.prisma-insider","refsource":"MISC","tags":[],"title":"Prisma - Insider - Visual Studio Marketplace","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-21415","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21415","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"21415","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"prisma","cpe5":"language-tools","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"visual_studio_code","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-21415","STATE":"PUBLIC","TITLE":"Visual Studio Code Prisma Extension Remote Code Execution Vulnerability"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"language-tools","version":{"version_data":[{"version_value":">= 2.1.0, < 2.20.0"},{"version_value":"< 20.0.27"}]}}]},"vendor_name":"prisma"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"{\"CWE-94\":\"Improper Control of Generation of Code ('Code Injection')\"}"}]}]},"references":{"reference_data":[{"name":"https://github.com/prisma/language-tools/security/advisories/GHSA-4rf9-43m7-x828","refsource":"CONFIRM","url":"https://github.com/prisma/language-tools/security/advisories/GHSA-4rf9-43m7-x828"},{"name":"https://github.com/prisma/language-tools/pull/750","refsource":"MISC","url":"https://github.com/prisma/language-tools/pull/750"},{"name":"https://marketplace.visualstudio.com/items?itemName=Prisma.prisma","refsource":"MISC","url":"https://marketplace.visualstudio.com/items?itemName=Prisma.prisma"},{"name":"https://marketplace.visualstudio.com/items?itemName=Prisma.prisma-insider","refsource":"MISC","url":"https://marketplace.visualstudio.com/items?itemName=Prisma.prisma-insider"}]},"source":{"advisory":"GHSA-4rf9-43m7-x828","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-04-29 17:15:00","lastModifiedDate":"2022-10-21 22:43:00","problem_types":["NVD-CWE-Other"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:prisma:language-tools:*:*:*:*:*:visual_studio_code:*:*","versionEndExcluding":"2.20.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"21415","Ordinal":"195541","Title":"CVE-2021-21415","CVE":"CVE-2021-21415","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"21415","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"21415","Ordinal":"2","NoteData":"2021-04-29","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"21415","Ordinal":"3","NoteData":"2021-04-29","Type":"Other","Title":"Modified"}]}}}