All CVEs / Cookiecutter Project
CVE-2022-24065Cookiecutter Project Cookiecutter
Critical 9.8 No auth needed
Follow: this CVE · Cookiecutter Project · Cookiecutter Project Cookiecutter We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 4.6% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- Jun 8, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Cookiecutter.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | cookiecutter |
< 2.1.1 |
2.1.1 |
pip install "cookiecutter>=2.1.1" |
| PyPI | cookiecutter |
< 2.1.1 |
2.1.1 |
pip install "cookiecutter>=2.1.1" |
Per OSV / GitHub Advisories (GHSA-f4q6-9qm4-h8j4, PYSEC-2022-204). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| cookiecutter_project | cookiecutter | < 2.1.1 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- snyk.io Exploit Patch Third Party Advisory