{"id":"CVE-2021-21414","published":"2021-04-29T00:45:16Z","modified":"2024-08-03T18:09:16Z","title":"Command injection vulnerability in @prisma/sdk in getPackedPackage function","vendor":"prisma","product":"prisma","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02073,"percentile":0.81923,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/prisma/prisma/security/advisories/GHSA-pxcc-hj8w-fmm7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/prisma/prisma/pull/6245","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20210618-0003/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":21.8,"factors":[{"name":"EPSS percentile","points":16.38},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"prisma","affectedVersions":[{"vendor":"prisma","product":"prisma","versions":["< 2.20.0"]}],"affected":[{"ecosystem":"npm","package":"@prisma/sdk","vulnerableRanges":["<2.20.0"],"patched":["2.20.0"],"from":["GHSA-pxcc-hj8w-fmm7"],"provenance":"source"}],"summary":{"text":"A command injection flaw exists in the getPackedPackage function of the @prisma/sdk package, part of the Prisma open source ORM for Node.js and TypeScript. An attacker who can get a client of the library to call that function with untrusted input could achieve remote code execution, though the function is not publicly advertised and is mainly used for Prisma's own tests and CLI builds.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:56:43Z"},"euvd":{"id":"EUVD-2021-0856","exploited":false,"provenance":"source"}}