Live threats

All CVEs / Cookiecutter Project

CVE-2022-24065Cookiecutter Project Cookiecutter

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Cookiecutter.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
cookiecutter_projectcookiecutter< 2.1.1
fedoraprojectfedora35
fedoraprojectfedora36

Official sources

References

Links published by the sources. Open them with care.