Vulnerabilities / CVE-2022-24065

critical

CVE-2022-24065

The package cookiecutter before 2.1.1 are vulnerable to Command Inject ...

Published Modified CWE 78
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA.

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
pip::GitHub Security Advisory pipcookiecutter2.1.1
debian 10cookiecutterno fix listed
debian 11cookiecutterno fix listed
debian 12cookiecutterno fix listed
debian 13cookiecutter2.6.0-1
debian 14cookiecutter2.6.0-1
debian 9cookiecutterno fix listed
echocookiecutter2.6.0-1
rapidfort debian 12cookiecutter0:2.6.0-1
rapidfort debian 13cookiecutter0:2.6.0-1

References

All 11 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.