PYSEC-2022-204
Dashboard / Vulnerabilities / PYSEC-2022-204
PYSEC-2022-204
Published: 8 Jun 2022Last Modified: 8 Nov 2023
Summary:
Details: 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.
References: https://snyk.io/vuln/SNYK-PYTHON-COOKIECUTTER-2414281, https://github.com/cookiecutter/cookiecutter/commit/fdffddb31fd2b46344dfa317531ff155e7999f77, https://github.com/cookiecutter/cookiecutter/releases/tag/2.1.1, https://github.com/advisories/GHSA-f4q6-9qm4-h8j4
Affected packages
Package
Name: cookiecutter
Purl: pkg:pypi/cookiecutter
Affected ranges
Affected versions
0.1
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
