Vulnerability · Published Apr 29, 2021 · Assigned by GitHub_M
CVE-2021-21414Command injection vulnerability in @prisma/sdk in getPackedPackage function
High 7.7
In plain English
A high-severity OS command injection in prisma from prisma. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Prisma is an open source ORM for Node.js & TypeScript. As of today, we are not aware of any Prisma users or external consumers of the `@prisma/sdk` package who are affected by this security vulnerability. This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input. It only affects the `getPackedPackage` function and this function is not advertised and only used for tests & building our CLI, no malicious code was found after checking our codebase.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @prisma/sdk | 2.20.0 | GHSA-pxcc-hj8w-fmm7 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N
References
- https://github.com/prisma/prisma/security/advisories/GHSA-pxcc-hj8w-fmm7 x_refsource_CONFIRM
- https://github.com/prisma/prisma/pull/6245 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210618-0003/ x_refsource_CONFIRM