RCE in Cookiecutter Project
CVE-2022-24065
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.042, 91.1th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Cookiecutter Project
- Fedoraproject Fedora — versions 35, 36
- Cookiecutter — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (dellalibera/dellalibera). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/SNYK-PYTHON-COOKIECUTTER-2414281 (Exploit, Patch, Third Party Advisory)
- github.com/cookiecutter/cookiecutter/releases/tag/2.1.1 (Third Party Advisory)
- github.com/cookiecutter/cookiecutter/commit/fdffddb31fd2b46344dfa317531ff155e79… (Patch, Third Party Advisory)
- FEDORA-2022-ff1c98b2fe (vendor-advisory)
- FEDORA-2022-4a3d83a1d2 (vendor-advisory)