Critical severity · published Jun 8, 2022
CVE-2022-24065
The package cookiecutter before 2.1.1 are vulnerable to Command Injection via hg argument injection
9.8
CVSS
4.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)4.2% · higher than 91% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CO
Cookiecutter · Cookiecutter Project
before 2.1.1 · source: NVD
FE
Fedora · Fedoraproject
35; 36 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-24065
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-24065
Patch
https://github.com/cookiecutter/cookiecutter/commit/fdffddb31fd2b46344dfa317531ff155e7999f77
Third Party Advisory
https://github.com/cookiecutter/cookiecutter/releases/tag/2.1.1
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G5TXC4JYTNGOUFMCXPZ6QKWEZN3URTAK/
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HQKWT7SGFDCUPPLDIELTN7FVTHWDL5YK/
Exploit
https://snyk.io/vuln/SNYK-PYTHON-COOKIECUTTER-2414281
