
CVE catalog
CVE-2022-24065
cookiecutter affected and fixed versions
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
- High · CVSS 8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 4.20% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiantrixie | cookiecutter | 2.6.0-1 | FixedDistribution-reported fixed boundary | [CVE-2022-24065] |
| Debiantrixie | cookiecutter | 2.6.0-2 | Fixed | [CVE-2022-24065] |
| Debiansid | cookiecutter | 2.6.0-1 | FixedDistribution-reported fixed boundary | [CVE-2022-24065] |
| Debiansid | cookiecutter | 2.6.0-2 | Fixed | [CVE-2022-24065] |
| Debianforky | cookiecutter | 2.6.0-1 | FixedDistribution-reported fixed boundary | [CVE-2022-24065] |
| Debianforky | cookiecutter | 2.6.0-2 | Fixed | [CVE-2022-24065] |
Showing 6 fix observations. All 21 observations, including unknown and conflicting reports, are available below.
Provider details and historical evidence
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| UnknownRelease not reported | cookiecutter | Not reported | UnknownSource applicability is not established | Provider not reported |
| Debianbookworm | cookiecutter | Not reported | AffectedDistribution reports no fix | [CVE-2022-24065] |
| Debianbookworm | cookiecutter | 1.7.3-3 | Affected | [CVE-2022-24065] |
| Debianforky | cookiecutter | 2.6.0-1 | FixedDistribution-reported fixed boundary | [CVE-2022-24065] |
| Debianforky | cookiecutter | 2.6.0-2 | Fixed | [CVE-2022-24065] |
| Debiansid | cookiecutter | 2.6.0-1 | FixedDistribution-reported fixed boundary | [CVE-2022-24065] |
| Debiansid | cookiecutter | 2.6.0-2 | Fixed | [CVE-2022-24065] |
| Debiantrixie | cookiecutter | 2.6.0-1 | FixedDistribution-reported fixed boundary | [CVE-2022-24065] |
| Debiantrixie | cookiecutter | 2.6.0-2 | Fixed | [CVE-2022-24065] |
| Ubuntu16.04 | cookiecutter | 1.0.0-2ubuntu1 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-24065] |
| Ubuntu16.04 | cookiecutter | 1.0.0-3ubuntu1 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-24065] |
| Ubuntu16.04 | cookiecutter | 1.0.0-3ubuntu2 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-24065] |
| Ubuntu16.04 | cookiecutter | 1.3.0-2 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-24065] |
| Ubuntu18.04 | cookiecutter | 1.5.0-2 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-24065] |
| Ubuntu18.04 | cookiecutter | 1.5.1-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-24065] |
| Ubuntu18.04 | cookiecutter | 1.6.0-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-24065] |
| Ubuntu18.04 | cookiecutter | 1.6.0-1ubuntu2 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-24065] |
| Ubuntu18.04 | cookiecutter | 1.6.0-2 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-24065] |
| Ubuntu22.04 | cookiecutter | 1.7.3-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-24065] |
| Ubuntu24.04 | cookiecutter | 1.7.3-3 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-24065] |
| Ubuntu24.04 | cookiecutter | 2.6.0-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-24065] |
Original provider fields
{
"package_releases": [
{
"name": "cookiecutter",
"status": "fixed",
"release": "sid",
"version": "2.6.0-2"
},
{
"name": "cookiecutter",
"status": "fixed",
"release": "forky",
"version": "2.6.0-2"
},
{
"name": "cookiecutter",
"status": "fixed",
"release": "trixie",
"version": "2.6.0-2"
},
{
"name": "cookiecutter",
"status": "vulnerable",
"release": "bookworm",
"version": "1.7.3-3"
}
],
"fixed_versions": [
{
"bug": 1013279,
"name": "cookiecutter",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": "2.6.0-1"
},
{
"bug": 1013279,
"name": "cookiecutter",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "not yet assigned",
"fixed_version": "2.6.0-1"
},
{
"bug": 1013279,
"name": "cookiecutter",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "not yet assigned",
"fixed_version": "2.6.0-1"
},
{
"bug": 1013279,
"name": "cookiecutter",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": ""
}
],
"distribution_packages": [
{
"name": "cookiecutter",
"fixed_version": "not yet fixed",
"applicability_unknown": true
},
{
"name": "cookiecutter",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "16.04",
"versions": [
"1.0.0-2ubuntu1",
"1.0.0-3ubuntu1",
"1.0.0-3ubuntu2",
"1.3.0-2"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-24065",
"fixed_version": "",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2022-24065",
"provider_updated_at": "2025-10-24T04:53:29Z",
"applicability_unknown": true
},
{
"name": "cookiecutter",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "18.04",
"versions": [
"1.5.0-2",
"1.5.1-1",
"1.6.0-1",
"1.6.0-1ubuntu2",
"1.6.0-2"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-24065",
"fixed_version": "",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2022-24065",
"provider_updated_at": "2025-10-24T04:53:29Z",
"applicability_unknown": true
},
{
"name": "cookiecutter",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "22.04",
"versions": [
"1.7.3-1"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-24065",
"fixed_version": "",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2022-24065",
"provider_updated_at": "2025-10-24T04:53:29Z",
"applicability_unknown": true
},
{
"name": "cookiecutter",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "24.04",
"versions": [
"1.7.3-3",
"2.6.0-1"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-24065",
"fixed_version": "",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2022-24065",
"provider_updated_at": "2025-10-24T04:53:29Z",
"applicability_unknown": true
}
]
}Publisher notes
[bookworm] cookiecutter: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [cookiecutter]Unknown
Details (2)
1.7.3-3· all · bookwormAffected
dsa · cookiecutter · debian · bookworm
1.7.3-3· all · bookwormAffected
dsa · cookiecutter · debian · bookworm
- [python3-cookiecutter]Unknown
Source package: [cookiecutter]
Details (2)
1.7.3-3· all · bookwormAffected
dsa · cookiecutter · debian · bookworm
1.7.3-3· all · bookwormAffected
dsa · cookiecutter · debian · bookworm
- [python-cookiecutter-doc]Unknown
Source package: [cookiecutter]
Details (2)
1.7.3-3· all · bookwormAffected
dsa · cookiecutter · debian · bookworm
1.7.3-3· all · bookwormAffected
dsa · cookiecutter · debian · bookworm
Observed:
References
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-24065]
- [https://security-tracker.debian.org/tracker/CVE-2022-24065]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-24065.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]