CVE-2021-21414
JSON

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 packageVersionsReported by
prisma prisma< 2.20.0, before 2.20.0CVE List, NVD
@prisma/sdk (npm)before 2.20.0GitHub Advisory Database

All scores

GitHub_M7.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N
GitHub7.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N
NVD7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV: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:

NVD (es)

Prisma es un ORM de código abierto para Node.js y TypeScript.&#xa0;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.&#xa0;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.&#xa0;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

Sources

SourceRecordLicence
CVE ListCVE-2021-21414 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-pxcc-hj8w-fmm7 changed 2026-07-08CC-BY-4.0
NVDCVE-2021-21414 changed 2026-06-17Public domain