
Cloud Vulnerability DB
A community-led vulnerabilities database
The package cookiecutter before version 2.1.1 was found to be 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 allows setting additional flags that can be used to perform command injection. The vulnerability was discovered in March 2022 and fixed with the release of version 2.1.1 in June 2022 (Snyk Report, GitHub Release).
The vulnerability exists in the way the checkout parameter is handled when passed to the hg (Mercurial) checkout command. The code did not properly sanitize the checkout parameter before passing it to the command execution, allowing attackers to inject additional command flags. The vulnerability has a CVSS v3.1 base score of 8.1 (High) with Network attack vector, High attack complexity, and No privileges required. The fix involved adding proper sanitization by inserting '--' before user-controlled arguments to prevent them from being interpreted as command options (Snyk Report).
Successful exploitation of this vulnerability could lead to total loss of confidentiality and integrity, potentially allowing attackers to execute arbitrary commands on the affected system. This could result in unauthorized access to sensitive information, modification of files, and potential system compromise (Snyk Report).
The recommended mitigation is to upgrade cookiecutter to version 2.1.1 or higher, which includes the security fix. The fix was implemented by adding the '--' characters before user-controlled values to prevent them from being interpreted as command options (GitHub Release, Snyk Report).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."