{"id":"CVE-2021-21414","state":"PUBLISHED","title":"Command injection vulnerability in @prisma/sdk in getPackedPackage function","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.","publishedAt":"2021-04-29T00:45:16.000Z","updatedAt":"2024-08-03T18:09:16.130Z","severity":{"score":7.7,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["prisma prisma"],"affected":[{"vendor":"prisma","product":"prisma","versions":[{"version":"< 2.20.0","status":"affected"}]}],"references":["https://github.com/prisma/prisma/security/advisories/GHSA-pxcc-hj8w-fmm7","https://github.com/prisma/prisma/pull/6245","https://security.netapp.com/advisory/ntap-20210618-0003/"],"weaknesses":["CWE-78"],"ingestedAt":"2026-10-29T19:47:59.168Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/21xxx/CVE-2021-21414.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-21414","state":"PUBLISHED","datePublished":"2021-04-29T00:45:16.000Z","dateUpdated":"2024-08-03T18:09:16.130Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2020-12-22T00:00:00.000Z"},"containers":{"cna":{"title":"Command injection vulnerability in @prisma/sdk in getPackedPackage function","descriptions":[{"lang":"en","value":"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":[{"vendor":"prisma","product":"prisma","versions":[{"version":"< 2.20.0","status":"affected"}]}],"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"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","description":"{\"CWE-78\":\"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')\"}","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2021-06-18T09:06:18.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-pxcc-hj8w-fmm7","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-21414","STATE":"PUBLIC","TITLE":"Command injection vulnerability in @prisma/sdk in getPackedPackage function"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"prisma","version":{"version_data":[{"version_value":"< 2.20.0"}]}}]},"vendor_name":"prisma"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"{\"CWE-78\":\"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')\"}"}]}]},"references":{"reference_data":[{"name":"https://github.com/prisma/prisma/security/advisories/GHSA-pxcc-hj8w-fmm7","refsource":"CONFIRM","url":"https://github.com/prisma/prisma/security/advisories/GHSA-pxcc-hj8w-fmm7"},{"name":"https://github.com/prisma/prisma/pull/6245","refsource":"MISC","url":"https://github.com/prisma/prisma/pull/6245"},{"name":"https://security.netapp.com/advisory/ntap-20210618-0003/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20210618-0003/"}]},"source":{"advisory":"GHSA-pxcc-hj8w-fmm7","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/prisma/prisma/security/advisories/GHSA-pxcc-hj8w-fmm7","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/prisma/prisma/pull/6245","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20210618-0003/","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T18:09:16.130Z"}}]}}}