Command injection in cookiecutter
Priority MEDIUM 49CWE-78Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
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.
Why it matters now
EPSS 0.04201 91st percentileScored 2026-11-07
Fix Fixed cookiecutter: 2.1.1cookiecutter (PyPI): 2.1.1
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | cookiecutter | before 2.1.1 | 2.1.1 | Patch available | CNA |
| — | cookiecutter (PyPI) | before 2.1.1 | 2.1.1 | Patch available | GHSA-f4q6-9qm4-h8j4 |
- cookiecutter Vendor— Affected before 2.1.1 Fixed in 2.1.1 Patch available CNA
- cookiecutter (PyPI) Vendor— Affected before 2.1.1 Fixed in 2.1.1 Patch available GHSA-f4q6-9qm4-h8j4
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:cookiecutter_project:cookiecutter:*:*:*:*:*:*:*:* | before 2.1.1 | Vulnerable | Cookiecutter Project |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
- cpe:2.3:a:cookiecutter_project:cookiecutter:*:*:*:*:*:*:*:* Versions before 2.1.1 Vulnerable ·Cookiecutter Project
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
Remediation
- Fix · CNA cookiecutter Fixed in 2.1.1
- Fix · GHSA-f4q6-9qm4-h8j4 cookiecutter (PyPI) Fixed in 2.1.1 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2022-24065
- 2026-10-03 Alias added: GHSA-f4q6-9qm4-h8j4
References
Advisory 5
Other 4
- https://github.com/cookiecutter/cookiecutter
- https://github.com/pypa/advisory-database/tree/main/vulns/cookiecutter/PYSEC-2022-204.yaml
- https://lists.fedoraproject.org/archives/list/[email protected]/message/G5TXC4JYTNGOUFMCXPZ6QKWEZN3URTAK
- https://lists.fedoraproject.org/archives/list/[email protected]/message/HQKWT7SGFDCUPPLDIELTN7FVTHWDL5YK
Sources
- CVE-2022-24065 · CVE Program
- CVE-2022-24065 · NVD
- FIRST EPSS
- GHSA-f4q6-9qm4-h8j4 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-24065 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences