UBUNTU-CVE-2024-9287

Source
https://ubuntu.com/security/CVE-2024-9287
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-9287.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-9287
Related
Published
2024-10-22T17:15:00Z
Modified
2024-11-26T04:31:58Z
Summary
[none]
Details

A vulnerability has been found in the CPython venv module and CLI where path names provided when creating a virtual environment were not quoted properly, allowing the creator to inject commands into virtual environment "activation" scripts (ie "source venv/bin/activate"). This means that attacker-controlled virtual environments are able to run commands when the virtual environment is activated. Virtual environments which are not created by an attacker or which aren't activated before being used (ie "./venv/bin/python") are not affected.

References

Affected packages

Ubuntu:Pro:14.04:LTS / python3.4

Package

Name
python3.4
Purl
pkg:deb/ubuntu/python3.4?arch=src?distro=trusty/esm

Affected ranges

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

Affected versions

3.*

3.4~b1-0ubuntu3
3.4~b1-4ubuntu4
3.4~b1-4ubuntu6
3.4~b1-5ubuntu2
3.4~b2-1
3.4~b3-1ubuntu1
3.4~rc1-1build1
3.4~rc2-1
3.4~rc3-0ubuntu1
3.4.0-1
3.4.0-2ubuntu1
3.4.0-2ubuntu1.1
3.4.3-1ubuntu1~14.04.1
3.4.3-1ubuntu1~14.04.3
3.4.3-1ubuntu1~14.04.4
3.4.3-1ubuntu1~14.04.5
3.4.3-1ubuntu1~14.04.6
3.4.3-1ubuntu1~14.04.7
3.4.3-1ubuntu1~14.04.7+esm2
3.4.3-1ubuntu1~14.04.7+esm4
3.4.3-1ubuntu1~14.04.7+esm6
3.4.3-1ubuntu1~14.04.7+esm7
3.4.3-1ubuntu1~14.04.7+esm8
3.4.3-1ubuntu1~14.04.7+esm10
3.4.3-1ubuntu1~14.04.7+esm11
3.4.3-1ubuntu1~14.04.7+esm12
3.4.3-1ubuntu1~14.04.7+esm13

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:14.04:LTS / python3.5

Package

Name
python3.5
Purl
pkg:deb/ubuntu/python3.5?arch=src?distro=trusty/esm

Affected ranges

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

Affected versions

3.*

3.5.2-2ubuntu0~16.04.4~14.04.1
3.5.2-2ubuntu0~16.04.4~14.04.1+esm1
3.5.2-2ubuntu0~16.04.4~14.04.1+esm3

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:16.04:LTS / python3.5

Package

Name
python3.5
Purl
pkg:deb/ubuntu/python3.5?arch=src?distro=esm-infra/xenial

Affected ranges

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

Affected versions

3.*

3.5.0-3
3.5.0-3ubuntu1
3.5.1~rc1-2ubuntu1
3.5.1-1
3.5.1-2
3.5.1-3
3.5.1-5
3.5.1-6ubuntu1
3.5.1-6ubuntu2
3.5.1-9ubuntu1
3.5.1-10
3.5.2-2~16.01
3.5.2-2~16.04
3.5.2-2ubuntu0~16.04.1
3.5.2-2ubuntu0~16.04.2
3.5.2-2ubuntu0~16.04.3
3.5.2-2ubuntu0~16.04.4
3.5.2-2ubuntu0~16.04.5
3.5.2-2ubuntu0~16.04.8
3.5.2-2ubuntu0~16.04.9
3.5.2-2ubuntu0~16.04.10
3.5.2-2ubuntu0~16.04.11
3.5.2-2ubuntu0~16.04.12
3.5.2-2ubuntu0~16.04.13
3.5.2-2ubuntu0~16.04.13+esm1
3.5.2-2ubuntu0~16.04.13+esm2
3.5.2-2ubuntu0~16.04.13+esm3
3.5.2-2ubuntu0~16.04.13+esm5
3.5.2-2ubuntu0~16.04.13+esm6
3.5.2-2ubuntu0~16.04.13+esm7
3.5.2-2ubuntu0~16.04.13+esm8
3.5.2-2ubuntu0~16.04.13+esm9
3.5.2-2ubuntu0~16.04.13+esm10
3.5.2-2ubuntu0~16.04.13+esm11
3.5.2-2ubuntu0~16.04.13+esm12
3.5.2-2ubuntu0~16.04.13+esm13
3.5.2-2ubuntu0~16.04.13+esm14
3.5.2-2ubuntu0~16.04.13+esm15

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:18.04:LTS / python3.6

Package

Name
python3.6
Purl
pkg:deb/ubuntu/python3.6?arch=src?distro=esm-infra/bionic

Affected ranges

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

Affected versions

3.*

3.6.3-1ubuntu1
3.6.4~rc1-1
3.6.4~rc1-2
3.6.4-1
3.6.4-2
3.6.4-3build1
3.6.4-4
3.6.5~rc1-1
3.6.5-3
3.6.6-1~18.04
3.6.7-1~18.04
3.6.8-1~18.04.1
3.6.8-1~18.04.2
3.6.8-1~18.04.3
3.6.9-1~18.04
3.6.9-1~18.04ubuntu1
3.6.9-1~18.04ubuntu1.1
3.6.9-1~18.04ubuntu1.3
3.6.9-1~18.04ubuntu1.4
3.6.9-1~18.04ubuntu1.6
3.6.9-1~18.04ubuntu1.7
3.6.9-1~18.04ubuntu1.8
3.6.9-1~18.04ubuntu1.9
3.6.9-1~18.04ubuntu1.10
3.6.9-1~18.04ubuntu1.12
3.6.9-1~18.04ubuntu1.13
3.6.9-1~18.04ubuntu1.13+esm1
3.6.9-1~18.04ubuntu1.13+esm2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:18.04:LTS / python3.7

Package

Name
python3.7
Purl
pkg:deb/ubuntu/python3.7?arch=src?distro=esm-apps/bionic

Affected ranges

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

Affected versions

3.*

3.7.0~a2-1
3.7.0~a3-1
3.7.0~a3-2
3.7.0~a3-3
3.7.0~a4-1
3.7.0~b1-1
3.7.0~b1-1build1
3.7.0~b2-1
3.7.0~b3-1
3.7.0-1~18.04
3.7.1-1~18.04
3.7.3-2~18.04.1
3.7.5-2~18.04
3.7.5-2~18.04.4
3.7.5-2ubuntu1~18.04.2
3.7.5-2ubuntu1~18.04.2+esm1
3.7.5-2ubuntu1~18.04.2+esm2
3.7.5-2ubuntu1~18.04.2+esm3

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:18.04:LTS / python3.8

Package

Name
python3.8
Purl
pkg:deb/ubuntu/python3.8?arch=src?distro=esm-apps/bionic

Affected ranges

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

Affected versions

3.*

3.8.0-3~18.04
3.8.0-3~18.04.1
3.8.0-3ubuntu1~18.04.2
3.8.0-3ubuntu1~18.04.2+esm1
3.8.0-3ubuntu1~18.04.2+esm2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / python3.8

Package

Name
python3.8
Purl
pkg:deb/ubuntu/python3.8?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.8.10-0ubuntu1~20.04.13

Affected versions

3.*

3.8.0-1
3.8.0-2
3.8.0-3
3.8.0-4
3.8.0-5
3.8.1-2ubuntu3
3.8.2~rc1-1ubuntu1
3.8.2-1
3.8.2-1ubuntu1
3.8.2-1ubuntu1.1
3.8.2-1ubuntu1.2
3.8.5-1~20.04
3.8.5-1~20.04.2
3.8.5-1~20.04.3
3.8.10-0ubuntu1~20.04
3.8.10-0ubuntu1~20.04.1
3.8.10-0ubuntu1~20.04.2
3.8.10-0ubuntu1~20.04.4
3.8.10-0ubuntu1~20.04.5
3.8.10-0ubuntu1~20.04.6
3.8.10-0ubuntu1~20.04.7
3.8.10-0ubuntu1~20.04.8
3.8.10-0ubuntu1~20.04.9
3.8.10-0ubuntu1~20.04.10
3.8.10-0ubuntu1~20.04.11
3.8.10-0ubuntu1~20.04.12

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "idle-python3.8"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "libpython3.8"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "libpython3.8-dbg"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "libpython3.8-dev"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "libpython3.8-minimal"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "libpython3.8-stdlib"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "libpython3.8-testsuite"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "python3.8"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "python3.8-dbg"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "python3.8-dev"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "python3.8-doc"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "python3.8-examples"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "python3.8-full"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "python3.8-minimal"
        },
        {
            "binary_version": "3.8.10-0ubuntu1~20.04.13",
            "binary_name": "python3.8-venv"
        }
    ]
}

Ubuntu:20.04:LTS / python3.9

Package

Name
python3.9
Purl
pkg:deb/ubuntu/python3.9?arch=src?distro=focal

Affected ranges

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

Affected versions

3.*

3.9.0~rc1-1~20.04
3.9.0-5~20.04
3.9.5-3~20.04.1
3.9.5-3ubuntu0~20.04.1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / python3.10

Package

Name
python3.10
Purl
pkg:deb/ubuntu/python3.10?arch=src?distro=jammy

Affected ranges

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

Affected versions

3.*

3.10.0-2
3.10.0-3
3.10.0-4
3.10.0-5
3.10.0-5build1
3.10.1-1
3.10.1-2
3.10.2-1
3.10.2-5
3.10.2-7
3.10.3-1
3.10.4-3
3.10.4-3ubuntu0.1
3.10.6-1~22.04
3.10.6-1~22.04.1
3.10.6-1~22.04.2
3.10.6-1~22.04.2ubuntu1
3.10.6-1~22.04.2ubuntu1.1
3.10.12-1~22.04.2
3.10.12-1~22.04.3
3.10.12-1~22.04.4
3.10.12-1~22.04.5
3.10.12-1~22.04.6

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "idle-python3.10"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "libpython3.10"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "libpython3.10-dbg"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "libpython3.10-dev"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "libpython3.10-minimal"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "libpython3.10-stdlib"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "libpython3.10-testsuite"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "python3.10"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "python3.10-dbg"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "python3.10-dev"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "python3.10-doc"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "python3.10-examples"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "python3.10-full"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "python3.10-minimal"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "python3.10-nopie"
        },
        {
            "binary_version": "3.10.12-1~22.04.7",
            "binary_name": "python3.10-venv"
        }
    ]
}

Ubuntu:22.04:LTS / python3.11

Package

Name
python3.11
Purl
pkg:deb/ubuntu/python3.11?arch=src?distro=jammy

Affected ranges

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

Affected versions

3.*

3.11.0~rc1-1~22.04

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / python3.12

Package

Name
python3.12
Purl
pkg:deb/ubuntu/python3.12?arch=src?distro=oracular

Affected ranges

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

Affected versions

3.*

3.12.3-1
3.12.4-1
3.12.4-1ubuntu1
3.12.5-1
3.12.5-4
3.12.6-1
3.12.7-0ubuntu1
3.12.7-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "idle-python3.12"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "libpython3.12-dev"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "libpython3.12-minimal"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "libpython3.12-stdlib"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "libpython3.12-testsuite"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "libpython3.12t64"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "libpython3.12t64-dbg"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "python3.12"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "python3.12-dbg"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "python3.12-dev"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "python3.12-doc"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "python3.12-examples"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "python3.12-full"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "python3.12-gdbm"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "python3.12-minimal"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "python3.12-nopie"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "python3.12-tk"
        },
        {
            "binary_version": "3.12.7-1ubuntu1",
            "binary_name": "python3.12-venv"
        }
    ]
}

Ubuntu:24.10 / python3.13

Package

Name
python3.13
Purl
pkg:deb/ubuntu/python3.13?arch=src?distro=oracular

Affected ranges

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

Affected versions

3.*

3.13.0~b4-1
3.13.0~rc1-1
3.13.0~rc1-4
3.13.0~rc2-1
3.13.0~rc3-0ubuntu1
3.13.0~rc3-1
3.13.0-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / python3.12

Package

Name
python3.12
Purl
pkg:deb/ubuntu/python3.12?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.12.3-1ubuntu0.3

Affected versions

3.*

3.12.0-1
3.12.0-5
3.12.0-6
3.12.0-7
3.12.1-2
3.12.2-1
3.12.2-4build3
3.12.2-4build4
3.12.2-5ubuntu3
3.12.3-1
3.12.3-1ubuntu0.1
3.12.3-1ubuntu0.2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "idle-python3.12"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "libpython3.12-dev"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "libpython3.12-minimal"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "libpython3.12-stdlib"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "libpython3.12-testsuite"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "libpython3.12t64"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "libpython3.12t64-dbg"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "python3.12"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "python3.12-dbg"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "python3.12-dev"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "python3.12-doc"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "python3.12-examples"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "python3.12-full"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "python3.12-minimal"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "python3.12-nopie"
        },
        {
            "binary_version": "3.12.3-1ubuntu0.3",
            "binary_name": "python3.12-venv"
        }
    ]
}