All reports
Critical

OS Command Injection in cookiecutter

Affected versions

Version ranges need review.

Affected versions
<2.1.1
Fixed version
2.1.1
Affected versions
< 2.1.1
Fixed version
2.1.1

Exploitation

CVE-2022-24065

Probability of exploitation in the next 30 days: 4.20%

FIRST EPSS · 2026-11-21

Description

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.

Links