{"id":"GHSA-pxcc-hj8w-fmm7","summary":"Command injection vulnerability in @prisma/sdk in getPackedPackage function","details":"### 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","aliases":["CVE-2021-21414"],"modified":"2026-02-04T02:33:30.417789Z","published":"2021-04-06T17:25:12Z","related":["CVE-2021-21414"],"database_specific":{"github_reviewed":true,"nvd_published_at":"2021-04-29T01:15:00Z","cwe_ids":["CWE-78"],"severity":"HIGH","github_reviewed_at":"2021-03-31T18:00:32Z"},"references":[{"type":"WEB","url":"https://github.com/prisma/prisma/security/advisories/GHSA-pxcc-hj8w-fmm7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21414"},{"type":"WEB","url":"https://github.com/prisma/prisma/pull/6245"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20210618-0003"}],"affected":[{"package":{"name":"@prisma/sdk","ecosystem":"npm","purl":"pkg:npm/%40prisma/sdk"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.20.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-pxcc-hj8w-fmm7/GHSA-pxcc-hj8w-fmm7.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N"}]}