ADVISORIES

Vulnerability

CVE-2022-24065

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.

4 advisories report this vulnerability, across 3 ecosystems.

High severity All PyPI 2Debian 1Ubuntu 1

Advisories

  • DEBIAN-CVE-2022-24065

    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…

    CVE-2022-24065 Debian Updated 20 November 2026
  • GHSA-f4q6-9qm4-h8j4

    OS Command Injection in cookiecutter

    Critical CVE-2022-24065 PyPI Updated 25 November 2024
  • PYSEC-2022-204

    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…

    CVE-2022-24065 PyPI Updated 8 November 2023
  • UBUNTU-CVE-2022-24065

    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…

    CVE-2022-24065 Ubuntu Updated 24 October 2025

References