# CVE-2021-21414: Command injection vulnerability in @prisma/sdk in getPackedPackage function

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.07%, higher than 82% of CVEs (2026-12-01)
- Published: 2021-04-06T17:25:12.000Z
- Modified: 2026-07-08T06:28:53.078Z
- Also known as: GHSA-pxcc-hj8w-fmm7
- Weaknesses: CWE-78
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- prisma prisma: < 2.20.0; before 2.20.0
- @prisma/sdk (npm): before 2.20.0

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/prisma/prisma/security/advisories/GHSA-pxcc-hj8w-fmm7> (third-party-advisory, web)
- <https://github.com/prisma/prisma/pull/6245> (patch, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20210618-0003/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21414> (advisory)
- <https://security.netapp.com/advisory/ntap-20210618-0003> (web)

## Sources

- CVE List: [CVE-2021-21414](https://www.cve.org/CVERecord?id=CVE-2021-21414), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-pxcc-hj8w-fmm7](https://github.com/advisories/GHSA-pxcc-hj8w-fmm7), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21414](https://nvd.nist.gov/vuln/detail/CVE-2021-21414), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21414 · Whole record: https://cve.day/CVE-2021-21414.json · Rebuilt by cve.day 2026-11-25T22:58:01.081Z
