UBUNTU-CVE-2022-24065

Source
https://ubuntu.com/security/CVE-2022-24065
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24065.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2022-24065
Upstream
Published
2022-06-08T08:15:00Z
Modified
2025-07-18T16:49:17Z
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.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:16.04:LTS / cookiecutter

Package

Name
cookiecutter
Purl
pkg:deb/ubuntu/cookiecutter@1.3.0-2?arch=source&distro=esm-apps/xenial

Affected ranges

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

Affected versions

1.*

1.0.0-2ubuntu1
1.0.0-3ubuntu1
1.0.0-3ubuntu2
1.3.0-2

Ubuntu:Pro:18.04:LTS / cookiecutter

Package

Name
cookiecutter
Purl
pkg:deb/ubuntu/cookiecutter@1.6.0-2?arch=source&distro=esm-apps/bionic

Affected ranges

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

Affected versions

1.*

1.5.0-2
1.5.1-1
1.6.0-1
1.6.0-1ubuntu2
1.6.0-2

Ubuntu:22.04:LTS / cookiecutter

Package

Name
cookiecutter
Purl
pkg:deb/ubuntu/cookiecutter@1.7.3-1?arch=source&distro=jammy

Affected ranges

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

Affected versions

1.*

1.7.3-1

Ubuntu:24.04:LTS / cookiecutter

Package

Name
cookiecutter
Purl
pkg:deb/ubuntu/cookiecutter@2.6.0-1?arch=source&distro=noble

Affected ranges

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

Affected versions

1.*

1.7.3-3

2.*

2.6.0-1