Skip to content
OpenAdvisories
High · 8.1 CVE-2022-24065 EUVD-2022-0047GHSA-f4q6-9qm4-h8j4PYSEC-2022-204SNYK-PYTHON-COOKIECUTTER-2414281

Command Injection

Published Jun 3, 2022 · Updated Sep 17, 2024 · Assigned by snyk

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

VendorProductAffectedFixed
— 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.

ReleasePackageFixed inAdvisory
Debian 14 cookiecutter 2.6.0-1 —
Debian 13 cookiecutter 2.6.0-1 —
Debian 12 cookiecutter No fix yet —
ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
PyPI cookiecutter < 2.1.1 2.1.1 GHSA-f4q6-9qm4-h8j4

References