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
Related
Published
2022-06-08T08:15:00Z
Modified
2025-01-13T10:23:26Z
Severity
  • 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
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

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

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

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

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

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / cookiecutter

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.6.0-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.6.0-1",
            "binary_name": "cookiecutter"
        },
        {
            "binary_version": "2.6.0-1",
            "binary_name": "python-cookiecutter-doc"
        },
        {
            "binary_version": "2.6.0-1",
            "binary_name": "python3-cookiecutter"
        }
    ]
}

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

Ecosystem specific

{
    "ubuntu_priority": "medium"
}