Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2021-21415— Visual Studio Code Prisma Extension Remote Code Execution Vulnerability

Quick assessment

Affected
prisma language-tools
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Prisma VS Code extension是一个代码扩展程序,可为prisma文件进行语法高亮、格式化、改名、快速修复等。 Prisma VS Code extension 存在安全漏洞,攻击者可利用该漏洞远程代码执行。

CVSS 7.8 · High EPSS 2.10% · P81
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2021-21415

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Visual Studio Code Prisma Extension Remote Code Execution Vulnerability
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Prisma VS Code extension 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Prisma VS Code extension是一个代码扩展程序,可为prisma文件进行语法高亮、格式化、改名、快速修复等。 Prisma VS Code extension 存在安全漏洞,攻击者可利用该漏洞远程代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
prisma language-tools >= 2.1.0, < 2.20.0 -

II. Public POCs for CVE-2021-21415

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-21415

请登录查看更多情报信息。

Patches & Fixes for CVE-2021-21415 (1)

Vendor Advisories for CVE-2021-21415 (1)

Other References for CVE-2021-21415 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2021-21415

No comments yet


Leave a comment