Description
The package cookiecutter before 2.1.1 are 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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | cookiecutter | unspecified – < 2.1.1 | 2.1.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | cookiecutter | 2.6.0-1 | — |
| Debian 13 | cookiecutter | 2.6.0-1 | — |
| Debian 12 | cookiecutter | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | cookiecutter | No fix yet | — |
| Ubuntu 22.04 LTS | cookiecutter | No fix yet | — |
| Ubuntu 18.04 LTS | cookiecutter | No fix yet | — |
| Ubuntu 16.04 LTS | cookiecutter | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | cookiecutter | < 2.1.1 | 2.1.1 | GHSA-f4q6-9qm4-h8j4 |