PT-2021-14489
CVE-2021-21414
·
Published
2021-04-06
·
Updated
2022-04-26
Description by
CVSS 3.1
7.7
HighMetricsAV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions
@prisma/sdk versions prior to 2.20.0
@prisma/sdk versions prior to 2.20.0-dev.29
Description
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, which is not advertised and only used for tests and building the CLI. No malicious code was found after checking the codebase. As of today, there are no known Prisma users or external consumers of the @prisma/sdk package who are affected by this security issue.Recommendations
For @prisma/sdk versions prior to 2.20.0, update to version 2.20.0 or later.
For @prisma/sdk versions prior to 2.20.0-dev.29, update to version 2.20.0-dev.29 or later.
As a temporary workaround, consider disabling the
getPackedPackage function until a patch is available. Avoid using this function with untrusted input to minimize the risk of exploitation. Found an issue in the description? Have something to add? Feel free to write us 👾