{"cve":"CVE-2022-24065","nvd":{"published":"2022-06-08T08:15:07.237","modified":"2026-06-17T04:31:14.643","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-78"],"references":["https://github.com/cookiecutter/cookiecutter/commit/fdffddb31fd2b46344dfa317531ff155e7999f77","https://github.com/cookiecutter/cookiecutter/releases/tag/2.1.1","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G5TXC4JYTNGOUFMCXPZ6QKWEZN3URTAK/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HQKWT7SGFDCUPPLDIELTN7FVTHWDL5YK/","https://snyk.io/vuln/SNYK-PYTHON-COOKIECUTTER-2414281"],"products":["cookiecutter_project:cookiecutter","fedoraproject:fedora"],"source":"nvd","synced_at":"2026-10-19T21:32:39.174919249+00:00"},"epss":{"cve":"CVE-2022-24065","score":0.04201,"percentile":0.90958,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-f4q6-9qm4-h8j4","url":"https://osv.dev/vulnerability/GHSA-f4q6-9qm4-h8j4","summary":"OS Command Injection in cookiecutter","modified":"2024-11-25T05:24:55.529118Z","packages":[{"ecosystem":"PyPI","name":"cookiecutter","purl":"pkg:pypi/cookiecutter","ranges":["<2.1.1"],"fixed":["2.1.1"]}]},{"id":"PYSEC-2022-204","url":"https://osv.dev/vulnerability/PYSEC-2022-204","summary":"","modified":"2023-11-08T04:08:29.124993Z","packages":[{"ecosystem":"PyPI","name":"cookiecutter","purl":"pkg:pypi/cookiecutter","ranges":["<2.1.1"],"fixed":["2.1.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}