CVE catalog

CVE-2022-24065

cookiecutter affected and fixed versions

[CVE catalog]

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.1CVSS: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 / releasePackageVersionStatusSource
Debiantrixiecookiecutter2.6.0-1FixedDistribution-reported fixed boundary[CVE-2022-24065]
Debiantrixiecookiecutter2.6.0-2Fixed[CVE-2022-24065]
Debiansidcookiecutter2.6.0-1FixedDistribution-reported fixed boundary[CVE-2022-24065]
Debiansidcookiecutter2.6.0-2Fixed[CVE-2022-24065]
Debianforkycookiecutter2.6.0-1FixedDistribution-reported fixed boundary[CVE-2022-24065]
Debianforkycookiecutter2.6.0-2Fixed[CVE-2022-24065]

Showing 6 fix observations. All 21 observations, including unknown and conflicting reports, are available below.

Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
UnknownRelease not reportedcookiecutterNot reportedUnknownSource applicability is not establishedProvider not reported
DebianbookwormcookiecutterNot reportedAffectedDistribution reports no fix[CVE-2022-24065]
Debianbookwormcookiecutter1.7.3-3Affected[CVE-2022-24065]
Debianforkycookiecutter2.6.0-1FixedDistribution-reported fixed boundary[CVE-2022-24065]
Debianforkycookiecutter2.6.0-2Fixed[CVE-2022-24065]
Debiansidcookiecutter2.6.0-1FixedDistribution-reported fixed boundary[CVE-2022-24065]
Debiansidcookiecutter2.6.0-2Fixed[CVE-2022-24065]
Debiantrixiecookiecutter2.6.0-1FixedDistribution-reported fixed boundary[CVE-2022-24065]
Debiantrixiecookiecutter2.6.0-2Fixed[CVE-2022-24065]
Ubuntu16.04cookiecutter1.0.0-2ubuntu1UnknownSource applicability is not established[UBUNTU-CVE-2022-24065]
Ubuntu16.04cookiecutter1.0.0-3ubuntu1UnknownSource applicability is not established[UBUNTU-CVE-2022-24065]
Ubuntu16.04cookiecutter1.0.0-3ubuntu2UnknownSource applicability is not established[UBUNTU-CVE-2022-24065]
Ubuntu16.04cookiecutter1.3.0-2UnknownSource applicability is not established[UBUNTU-CVE-2022-24065]
Ubuntu18.04cookiecutter1.5.0-2UnknownSource applicability is not established[UBUNTU-CVE-2022-24065]
Ubuntu18.04cookiecutter1.5.1-1UnknownSource applicability is not established[UBUNTU-CVE-2022-24065]
Ubuntu18.04cookiecutter1.6.0-1UnknownSource applicability is not established[UBUNTU-CVE-2022-24065]
Ubuntu18.04cookiecutter1.6.0-1ubuntu2UnknownSource applicability is not established[UBUNTU-CVE-2022-24065]
Ubuntu18.04cookiecutter1.6.0-2UnknownSource applicability is not established[UBUNTU-CVE-2022-24065]
Ubuntu22.04cookiecutter1.7.3-1UnknownSource applicability is not established[UBUNTU-CVE-2022-24065]
Ubuntu24.04cookiecutter1.7.3-3UnknownSource applicability is not established[UBUNTU-CVE-2022-24065]
Ubuntu24.04cookiecutter2.6.0-1UnknownSource 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
    }
  ]
}

[Debian bug #1013279]

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 · bookworm

      Affected

      dsa · cookiecutter · debian · bookworm

    • 1.7.3-3 · all · bookworm

      Affected

      dsa · cookiecutter · debian · bookworm

  • Source package: [cookiecutter]

    Details (2)
    • 1.7.3-3 · all · bookworm

      Affected

      dsa · cookiecutter · debian · bookworm

    • 1.7.3-3 · all · bookworm

      Affected

      dsa · cookiecutter · debian · bookworm

  • Source package: [cookiecutter]

    Details (2)
    • 1.7.3-3 · all · bookworm

      Affected

      dsa · cookiecutter · debian · bookworm

    • 1.7.3-3 · all · bookworm

      Affected

      dsa · cookiecutter · debian · bookworm

Observed:

References