CVE-2022-24065: cookiecutter - Command Injection
- Cve: CVE-2022-24065
- Name: cookiecutter - Command Injection
- 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.
- Impact: Attackers can execute arbitrary commands on the host system, potentially leading to full system compromise.
- Remediation: Update to cookiecutter version 2.1.1 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.04201
- Epss percentile: 0.91205
- Assignee: [email protected]
- Published at: 2022-06-08T08:15:07Z
- Age in days: 1630
- Modified at: 2026-06-17T04:31:14Z
- Patch available: yes
- Public exploits total: 1
- References total: 5
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-24065
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://snyk.io/vuln/SNYK-PYTHON-COOKIECUTTER-2414281 | nvd | 2022-06-08 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| cookiecutter_project:cookiecutter | < 2.1.1 | no | nvd | /v1/products/cookiecutter_project/cookiecutter |
| fedoraproject:fedora | = 36, = 35 | no | nvd | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| cookiecutter/cookiecutter | commit, package, releases | yes | /v1/repositories/cookiecutter/cookiecutter |
Index
- Repositories: 20
- Repositories high signal: 13
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-06-08
- Remote: yes
- Exposed hosts: 49161
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports