{"id":"CVE-2021-21414","aliases":["CVE-2021-21414","GHSA-pxcc-hj8w-fmm7"],"related":[],"kind":"vulnerability","state":"published","title":"Command injection vulnerability in @prisma/sdk in getPackedPackage function","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAs 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.\n\nThis issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input.\n\nIt 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.\n\n### Patches\n\nFixed in \n- @prisma/sdk@2.20.0 (latest channel)\n- @prisma/sdk@2.20.0-dev.29 (dev channel)\n\nPull Request closing this vulnerability [https://github.com/prisma/prisma/pull/6245](https://github.com/prisma/prisma/pull/6245)\n\n### Acknowledgements\n\nThis issue was discovered and reported by GitHub Engineer [@erik-krogh (Erik Krogh Kristensen)](https://github.com/erik-krogh).\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Create a discussion in [the Prisma repository](https://github.com/prisma/prisma/discussions)\n- Email us at security@prisma.io","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-04-06T17:25:12.000Z","modified":"2026-07-08T06:28:53.078Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 2.20.0","status":"affected"}],"vendor":"prisma","product":"prisma","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.20.0"}],"ecosystem":"npm","package":"@prisma/sdk","purl":"pkg:npm/%40prisma/sdk","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.20.0"}],"vendor":"prisma","product":"prisma","cpe":"cpe:2.3:a:prisma:prisma:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/prisma/prisma/security/advisories/GHSA-pxcc-hj8w-fmm7","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/prisma/prisma/pull/6245","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210618-0003/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21414","tags":["advisory"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210618-0003","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21414","url":"https://www.cve.org/CVERecord?id=CVE-2021-21414","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:16.130Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pxcc-hj8w-fmm7","url":"https://github.com/advisories/GHSA-pxcc-hj8w-fmm7","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:53.078Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21414","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21414","licence":"Public domain","modified":"2026-06-17T03:35:31.737Z"}],"updatedAt":"2026-11-25T22:58:01.081Z","epss":{"score":0.02073,"percentile":0.82003,"date":"2026-12-01T12:00:22.000Z"}}