{"id":"CVE-2022-24065","published":"2022-06-03T20:00:14Z","modified":"2024-09-17T00:46:55Z","title":"Command Injection","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04201,"percentile":0.91191,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-COOKIECUTTER-2414281","tags":["x_refsource_MISC"]},{"url":"https://github.com/cookiecutter/cookiecutter/releases/tag/2.1.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/cookiecutter/cookiecutter/commit/fdffddb31fd2b46344dfa317531ff155e7999f77","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HQKWT7SGFDCUPPLDIELTN7FVTHWDL5YK/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G5TXC4JYTNGOUFMCXPZ6QKWEZN3URTAK/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":23.9,"factors":[{"name":"EPSS percentile","points":18.24},{"name":"CVSS severity","points":5.67}]},"affectedVersions":[{"vendor":"n/a","product":"cookiecutter","versions":[">= unspecified, < 2.1.1"]}],"affected":[{"ecosystem":"PyPI","package":"cookiecutter","vulnerableRanges":["<2.1.1"],"patched":["2.1.1"],"from":["GHSA-f4q6-9qm4-h8j4","PYSEC-2022-204"],"provenance":"source"}],"summary":{"text":"The flaw is a command injection in the cookiecutter Python package, where the checkout parameter passed to the cookiecutter function is handed to the hg checkout command in a way that allows additional flags to be injected. An attacker who can influence that checkout value can add flags to the hg invocation and use them to run arbitrary commands, with the attack requiring network access, no authentication, and a high-complexity condition, as indicated by the attack vector.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:37:59Z"},"euvd":{"id":"EUVD-2022-0047","exploited":false,"provenance":"source"}}