{"id":"CVE-2022-24065","aliases":["DEBIAN-CVE-2022-24065","EUVD-2022-0047","GHSA-f4q6-9qm4-h8j4","MGASA-2022-0258","PYSEC-2022-204","SNYK-PYTHON-COOKIECUTTER-2414281","UBUNTU-CVE-2022-24065"],"status":"published","title":"Command Injection","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.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.04201,"percentile":0.91026,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-78"],"published":"2022-06-03T20:00:14Z","modified":"2026-10-28T02:30:51Z","fixes":[{"ecosystem":"PyPI","package":"cookiecutter","fixed_in":["2.1.1"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:13","package":"cookiecutter","fixed_in":["2.6.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"cookiecutter","fixed_in":["2.6.0-1"],"sources":["osv"]},{"ecosystem":"Mageia:8","package":"python-cookiecutter","fixed_in":["1.7.2-2.mga8"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"cookiecutter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"cookiecutter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.3-3","2.6.0-1","2.6.0-2"]},{"source":"osv","ecosystem":"Debian:13","package":"cookiecutter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"cookiecutter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"cookiecutter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1"}]}],"versions":["0.1","0.2","0.2.1","0.3","0.4","0.5","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.7.0","0.7.1","0.7.2","0.8.0","0.9.0","0.9.1","1.0.0","1.1.0","1.2.0","1.2.1","1.3.0","1.4.0","1.5.0","1.5.1","1.6.0","1.7.0","1.7.1","1.7.2","1.7.3","2.1.0"]},{"source":"osv","ecosystem":"Mageia:8","package":"python-cookiecutter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.2-2.mga8"}]}]},{"source":"osv","ecosystem":"PyPI","package":"cookiecutter","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"fdffddb31fd2b46344dfa317531ff155e7999f77"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1"}]}],"versions":["0.1","0.2","0.2.1","0.3","0.4","0.5","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.7.0","0.7.1","0.7.2","0.8.0","0.9.0","0.9.1","1.0.0","1.1.0","1.2.0","1.2.1","1.3.0","1.4.0","1.5.0","1.5.1","1.6.0","1.7.0","1.7.1","1.7.2","1.7.3","2.1.0"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"cookiecutter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.0-2ubuntu1","1.0.0-3ubuntu1","1.0.0-3ubuntu2","1.3.0-2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"cookiecutter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.0-2","1.5.1-1","1.6.0-1","1.6.0-1ubuntu2","1.6.0-2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"cookiecutter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.3-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"cookiecutter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.3-3","2.6.0-1"]}],"products":[{"vendor":"cookiecutter_project","product":"cookiecutter"},{"vendor":"fedoraproject","product":"fedora"}],"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-COOKIECUTTER-2414281","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","advisory","web"]},{"url":"https://github.com/cookiecutter/cookiecutter/releases/tag/2.1.1","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web","report"]},{"url":"https://github.com/cookiecutter/cookiecutter/commit/fdffddb31fd2b46344dfa317531ff155e7999f77","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HQKWT7SGFDCUPPLDIELTN7FVTHWDL5YK/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G5TXC4JYTNGOUFMCXPZ6QKWEZN3URTAK/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24065","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/cookiecutter/PYSEC-2022-204.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-f4q6-9qm4-h8j4","tags":["advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/G5TXC4JYTNGOUFMCXPZ6QKWEZN3URTAK","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HQKWT7SGFDCUPPLDIELTN7FVTHWDL5YK","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24065.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-24065","tags":["advisory"]},{"url":"https://github.com/cookiecutter/cookiecutter","tags":["package"]},{"url":"https://advisories.mageia.org/MGASA-2022-0258.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=30570","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/HQKWT7SGFDCUPPLDIELTN7FVTHWDL5YK/","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2022-24065","tags":["report"]},{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-COOKIECUTTER-2414281","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24065","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-24065","title":"Command Injection","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.","status":"published","published":"2022-06-03T20:00:14.617Z","modified":"2024-09-17T00:46:55.13Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:34:34.940806Z"}],"euvd":[{"id":"EUVD-2022-0047","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.","status":"published","published":"2022-06-03T20:00:14Z","modified":"2024-09-17T00:46:55Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high"}],"updated_at":"2026-11-03T00:28:55.3353Z"}],"ghsa":[{"id":"GHSA-f4q6-9qm4-h8j4","title":"OS Command Injection in cookiecutter","description":"The package cookiecutter before 2.1.1 is 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.","status":"published","published":"2022-06-09T23:48:49Z","modified":"2024-11-18T16:26:27Z","cvss":[{"version":"4.0","score":9.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:38:19.029049Z"}],"nvd":[{"id":"CVE-2022-24065","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.","status":"published","published":"2022-06-08T08:15:07.237Z","modified":"2026-06-17T04:31:14.643Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:07:21.62951Z"}],"osv":[{"id":"CVE-2022-24065","title":"Command Injection","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.","status":"published","published":"2022-06-03T20:00:14.617Z","modified":"2026-10-28T02:30:51.012134209Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high"}],"updated_at":"2026-11-02T15:44:24.428403Z"},{"id":"DEBIAN-CVE-2022-24065","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.","status":"published","published":"2022-06-08T08:15:07.237Z","modified":"2026-11-03T08:03:51.120453244Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-03T08:23:57.167851Z"},{"id":"GHSA-f4q6-9qm4-h8j4","title":"OS Command Injection in cookiecutter","description":"The package cookiecutter before 2.1.1 is 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.","status":"published","published":"2022-06-09T23:48:49Z","modified":"2024-11-25T05:24:55.529118Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":9.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"critical"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:46:46.006631Z"},{"id":"UBUNTU-CVE-2022-24065","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.","status":"published","published":"2022-06-08T08:15:00Z","modified":"2025-10-24T04:53:29Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:53:53.13624Z"},{"id":"MGASA-2022-0258","title":"Updated python-coookiecutter packages fix security vulnerability","description":"Command Injection via hg argument (CVE-2022-24065)\n","status":"published","published":"2022-07-13T20:44:07Z","modified":"2026-04-16T04:42:15.680068232Z","updated_at":"2026-11-02T15:49:41.849028Z"},{"id":"PYSEC-2022-204","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.","status":"published","published":"2022-06-08T08:15:00Z","modified":"2023-11-08T04:08:29.124993Z","updated_at":"2026-11-02T15:52:53.449407Z"}]}}
