7.7high
Command injection vulnerability in @prisma/sdk in getPackedPackage function
- Severity
- 7.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 2.07% (higher than 82% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-pxcc-hj8w-fmm7
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
| Product or package | Versions | Reported by |
|---|---|---|
| prisma prisma | < 2.20.0, before 2.20.0 | CVE List, NVD |
| @prisma/sdk (npm) | before 2.20.0 | GitHub Advisory Database |
All scores
| GitHub_M | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N |
| GitHub | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N |
| NVD | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
Fixed in
- @prisma/sdk@2.20.0 (latest channel)
- @prisma/sdk@2.20.0-dev.29 (dev channel)
Pull Request closing this vulnerability https://github.com/prisma/prisma/pull/6245
Acknowledgements
This issue was discovered and reported by GitHub Engineer @erik-krogh (Erik Krogh Kristensen).
For more information
If you have any questions or comments about this advisory:
- Create a discussion in the Prisma repository
- Email us at security@prisma.io
NVD (es)
Prisma es un ORM de código abierto para Node.js y TypeScript. Al día de hoy, no tenemos conocimiento de ningún usuario de Prisma o consumidor externo del paquete "@prisma/sdk" que esté afectado por esta vulnerabilidad de seguridad. Este problema puede conllevar a una ejecución de código remota si un cliente de la biblioteca llama al método vulnerable con una entrada que no es confiable. Solo afecta a la función "getPackedPackage" y esta función no es anunciada y solo es usada para pruebas y construcción de nuestra CLI, no se encontró ningún código malicioso después de comprobar nuestra base de código
References
| https://github.com/prisma/prisma/security/advisories/GHSA-pxcc-hj8w-fmm7 | third-party-advisory, web | |
| https://github.com/prisma/prisma/pull/6245 | patch, third-party-advisory, web | |
| https://security.netapp.com/advisory/ntap-20210618-0003/ | third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-21414 | advisory | |
| https://security.netapp.com/advisory/ntap-20210618-0003 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21414 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pxcc-hj8w-fmm7 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-21414 changed 2026-06-17 | Public domain |