SecurityContext

CVE-2022-24065: cookiecutter - Command Injection

  • Cve: CVE-2022-24065
  • Name: cookiecutter - 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.
  • Impact: Attackers can execute arbitrary commands on the host system, potentially leading to full system compromise.
  • Remediation: Update to cookiecutter version 2.1.1 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.04201
  • Epss percentile: 0.91205
  • Assignee: [email protected]
  • Published at: 2022-06-08T08:15:07Z
  • Age in days: 1630
  • Modified at: 2026-06-17T04:31:14Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 5
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-24065
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-78Improper Neutralization of Special Elements used in an OS Command

Public exploits

UrlSourceAdded date
https://snyk.io/vuln/SNYK-PYTHON-COOKIECUTTER-2414281nvd2022-06-08

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/cookiecutter/cookiecutter/commit/fdffddb31fd2b46344dfa317531ff155e7999f77Patch, Third Party Advisory
https://snyk.io/vuln/SNYK-PYTHON-COOKIECUTTER-2414281Exploit, Patch, Third Party Advisory
https://github.com/cookiecutter/cookiecutter/releases/tag/2.1.1Third Party Advisory
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/

Products

ProductAffectedPlatform boundSourcesUrl
cookiecutter_project:cookiecutter< 2.1.1nonvd/v1/products/cookiecutter_project/cookiecutter
fedoraproject:fedora= 36, = 35nonvd/v1/products/fedoraproject/fedora

Projects

RepositoryLink kindsIndexedUrl
cookiecutter/cookiecuttercommit, package, releasesyes/v1/repositories/cookiecutter/cookiecutter

Index

  • Repositories: 20
  • Repositories high signal: 13
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-06-08
  • Remote: yes
  • Exposed hosts: 49161
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports