GHSA-f4q6-9qm4-h8j4

Suggest an improvement
Source
https://github.com/advisories/GHSA-f4q6-9qm4-h8j4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-f4q6-9qm4-h8j4/GHSA-f4q6-9qm4-h8j4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-f4q6-9qm4-h8j4
Aliases
Published
2022-06-09T23:48:49Z
Modified
2024-11-25T05:24:55.529118Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.2 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-06-08T08:15:00Z",
    "cwe_ids": [
        "CWE-78"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2022-06-09T23:48:49Z"
}
References

Affected packages

PyPI / cookiecutter

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.1

Affected versions

0.*

0.1
0.2
0.2.1
0.3
0.4
0.5
0.6.0
0.6.1
0.6.2
0.6.3
0.6.4
0.7.0
0.7.1
0.7.2
0.8.0
0.9.0
0.9.1

1.*

1.0.0
1.1.0
1.2.0
1.2.1
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.7.0
1.7.1
1.7.2
1.7.3

2.*

2.1.0