NetSight
critical8.1

CVE-2022-24065

OS Command Injection in cookiecutter

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
pipcookiecutter< 2.1.12.1.1

Affected products

VendorProductAffected versions
Cookiecutter ProjectCookiecutter
before 2.1.1
FedoraprojectFedora
Versions 35, 36

Weakness classification

References