CVE-2022-24065 json
Command Injection
published 4y ago modified 4mo ago also GHSA-f4q6-9qm4-h8j4 , PYSEC-2022-204 , EUVD-2022-0047
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.2%
- EPSS 4.2% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi cookiecutter 2.1.1
- n/a cookiecutter 2.1.1
- cookiecutter Debian 14, Debian 13 2.6.0-1
debian advisories DEBIAN-CVE-2022-24065
Is CVE-2022-24065 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-24065 updated cvss 8.1
python-cookiecutter: Command Injection via hg argument injection
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.20% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-PYTHON-COOKIECUTTER-2414281 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | cookiecutter | <2.1.1 |
2.1.1 |
Affected products
- n/a cookiecutter
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/cookiecutter/cookiecutter/commit/fdffddb31fd2b46344dfa317531ff155e7999f77
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-PYTHON-COOKIECUTTER-2414281
web, exploit, patch, third-party-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/HQKWT7SGFDCUPPLDIELTN7FVTHWDL5YK/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/G5TXC4JYTNGOUFMCXPZ6QKWEZN3URTAK/
vendor-advisory
-
github.com
/cookiecutter/cookiecutter/releases/tag/2.1.1
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-24065
advisory
-
github.com
/advisories/GHSA-f4q6-9qm4-h8j4
advisory
-
github.com
/cookiecutter/cookiecutter
package
-
github.com
/pypa/advisory-database/tree/main/vulns/cookiecutter/PYSEC-2022-204.yaml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/G5TXC4JYTNGOUFMCXPZ6QKWEZN3URTAK
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/HQKWT7SGFDCUPPLDIELTN7FVTHWDL5YK
web
Sources
- CVE List CVE-2022-24065
- GitHub Advisory GHSA-f4q6-9qm4-h8j4
- NVD CVE-2022-24065
- OSV PYSEC-2022-204
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.