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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| snykCNA (assigner) | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P |
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 4.2% · top 9.0% of all CVEs (6 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.1.
Weakness
- Command Injection
- CWE-78 (opens in a new tab)All about CWE-78 and its CVEs
Affected products
cookiecutter
- affected unspecified – < 2.1.1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIcookiecutterGHSA-f4q6-9qm4-h8j4 (opens in a new tab)
References (5)
- https://snyk.io/vuln/SNYK-PYTHON-COOKIECUTTER-2414281 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/cookiecutter/cookiecutter/releases/tag/2.1.1 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/cookiecutter/cookiecutter/commit/fdffddb31fd2b46344dfa317531ff155e7999f77 (opens in a new tab)x_refsource_MISCx_transferred
- FEDORA-2022-ff1c98b2fe (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2022-4a3d83a1d2 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-f4q6-9qm4-h8j4 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-24065)Record last updated .