Vulnerability · Published Jun 3, 2022 · Assigned by snyk

CVE-2022-24065Command Injection

High 8.1

In plain English

A high-severity security flaw in cookiecutter. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.2% (higher than 91% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)4.2%top 9.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12cookiecutterno fix listedDEBIAN-CVE-2022-24065
Debian:13cookiecutter2.6.0-1DEBIAN-CVE-2022-24065
Debian:14cookiecutter2.6.0-1DEBIAN-CVE-2022-24065
PyPIcookiecutter2.1.1PYSEC-2022-204
PyPIcookiecutter2.1.1GHSA-f4q6-9qm4-h8j4
Ubuntu:22.04:LTScookiecutterno fix listedUBUNTU-CVE-2022-24065
Ubuntu:24.04:LTScookiecutterno fix listedUBUNTU-CVE-2022-24065

Affected products (as reported)

VendorProductVersions
n/a cookiecutter unspecified – before 2.1.1

References