Read the docs
TI-2022-08023 Aliases CVE-2022-24065GHSA-f4q6-9qm4-h8j4

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

VendorProductAffected versionsFixed inStatusSource
—cookiecutterbefore 2.1.12.1.1Patch availableCNA
—cookiecutter (PyPI)before 2.1.12.1.1Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:cookiecutter_project:cookiecutter:*:*:*:*:*:*:*:*before 2.1.1VulnerableCookiecutter Project
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*35VulnerableFedoraproject
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*36VulnerableFedoraproject
  • 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

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-24065
  2. 2026-10-03 Alias added: GHSA-f4q6-9qm4-h8j4

References

Sources