Skip to content

OS Command Injection in cookiecutter

High severity GitHub Reviewed Published Jun 9, 2022 to the GitHub Advisory Database • Updated Sep 13, 2024

Package

pip cookiecutter (pip)

Affected versions

< 2.1.1

Patched versions

2.1.1

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.

References

Published by the National Vulnerability Database Jun 8, 2022
Published to the GitHub Advisory Database Jun 9, 2022
Reviewed Jun 9, 2022
Last updated Sep 13, 2024

Severity

High

EPSS score

1.024%
(84th percentile)

Weaknesses

CVE ID

CVE-2022-24065

GHSA ID

GHSA-f4q6-9qm4-h8j4
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.