Bug 2095733 (CVE-2022-24065) - CVE-2022-24065 python-cookiecutter: Command Injection via hg argument injection
Summary: CVE-2022-24065 python-cookiecutter: Command Injection via hg argument injection
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2022-24065
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2095734
Blocks: 2099964
TreeView+ depends on / blocked
 
Reported: 2022-06-10 11:54 UTC by Marian Rehak
Modified: 2023-03-16 14:43 UTC (History)
6 users (show)

Fixed In Version: python-cookiecutter 2.1.1
Clone Of:
Environment:
Last Closed: 2022-06-10 15:49:47 UTC
Embargoed:


Attachments (Terms of Use)

Description Marian Rehak 2022-06-10 11:54:43 UTC
A 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.

Reference:

https://snyk.io/vuln/SNYK-PYTHON-COOKIECUTTER-2414281
https://github.com/cookiecutter/cookiecutter/commit/fdffddb31fd2b46344dfa317531ff155e7999f77
https://github.com/cookiecutter/cookiecutter/releases/tag/2.1.1

Comment 1 Marian Rehak 2022-06-10 11:55:00 UTC
Created python-cookiecutter tracking bugs for this issue:

Affects: fedora-all [bug 2095734]

Comment 2 Product Security DevOps Team 2022-06-10 15:49:45 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


Note You need to log in before you can comment on or make changes to this bug.