Advisory

GHSA-f4q6-9qm4-h8j4

Also known as: CVE-2022-24065, PYSEC-2022-204, SNYK-PYTHON-COOKIECUTTER-2414281

Summary

OS Command Injection in cookiecutter

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-06-09 23:48 UTC
Modified
2024-11-25 05:24 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences