Critical, CVSS 9.2PyPIAmendedPublished
OS Command Injection in cookiecutter
CVE-2022-24065 · GHSA-f4q6-9qm4-h8j4
- Affected
- PyPI cookiecutter < 2.1.1
- Fixed in
- 2.1.1· Vendor fix available
- Issue
- The package cookiecutter before 2.1.1 is vulnerable to Command Injection via hg argument injection. When calling the cookiecutter function from Python code with the checkout parameter, it is passed to the hg checkout command in a way that additional flags can be set. The additional flags can be used to perform a command injection.
Recommended action: Upgrade to 2.1.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.