Advisory

PYSEC-2022-204

Also known as: CVE-2022-24065, GHSA-f4q6-9qm4-h8j4, SNYK-PYTHON-COOKIECUTTER-2414281

Summary

The record has no summary.

Details

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

Not rated by the source.

Dates

Published
2022-06-08 08:15 UTC
Modified
2023-11-08 04:08 UTC

Affected packages and fixes

cookiecutter

PyPI · All systems

Affected

  • introduced 0, fixed 2.1.1 (ecosystem)

Fixed versions

2.1.1

Fix

  • Fixed version 2.1.1
    pip install --upgrade cookiecutter==2.1.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences