UBUNTU-CVE-2026-42284

Source
https://ubuntu.com/security/CVE-2026-42284
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42284.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2026-42284
Upstream
Downstream
Related
Published
2026-05-07T19:16:00Z
Modified
2026-05-27T10:15:42.932309614Z
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

GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, clone() validates multioptions as the original list, then executes shlex.split(" ".join(multi_options)). A string like "--branch main --config core.hooksPath=/x" passes validation (starts with --branch), but after split becomes ["--branch", "main", "--config", "core.hooksPath=/x"]. Git applies the config and executes attacker hooks during clone. This issue has been patched in version 3.1.47.

References

Affected packages

Ubuntu:Pro:20.04:LTS / python-git

Package

Name
python-git
Purl
pkg:deb/ubuntu/python-git?arch=source&distro=esm-apps%2Ffocal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.7-1ubuntu0.1~esm4

Affected versions

2.*
2.1.11-1
3.*
3.0.4-1
3.0.5-1
3.0.7-1
3.0.7-1ubuntu0.1~esm1
3.0.7-1ubuntu0.1~esm2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-git",
            "binary_version": "3.0.7-1ubuntu0.1~esm4"
        }
    ],
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42284.json"

Ubuntu:Pro:22.04:LTS / python-git

Package

Name
python-git
Purl
pkg:deb/ubuntu/python-git?arch=source&distro=esm-apps%2Fjammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.24-1ubuntu0.1~esm3

Affected versions

3.*
3.1.14-1
3.1.23-1
3.1.24-1
3.1.24-1ubuntu0.1~esm1
3.1.24-1ubuntu0.1~esm2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-git",
            "binary_version": "3.1.24-1ubuntu0.1~esm3"
        }
    ],
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42284.json"

Ubuntu:Pro:24.04:LTS / python-git

Package

Name
python-git
Purl
pkg:deb/ubuntu/python-git?arch=source&distro=esm-apps%2Fnoble

Affected ranges

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

Affected versions

3.*
3.1.30-1
3.1.37-1
3.1.37-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-git",
            "binary_version": "3.1.37-3ubuntu0.1~esm2"
        }
    ],
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42284.json"

Ubuntu:25.10 / python-git

Package

Name
python-git
Purl
pkg:deb/ubuntu/python-git?arch=source&distro=questing

Affected ranges

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

Affected versions

3.*
3.1.44-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-git",
            "binary_version": "3.1.44-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42284.json"

Ubuntu:Pro:26.04:LTS / python-git

Package

Name
python-git
Purl
pkg:deb/ubuntu/python-git?arch=source&distro=esm-apps%2Fresolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.46-1ubuntu0.1~esm1

Affected versions

3.*
3.1.44-1
3.1.45-1
3.1.46-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-git",
            "binary_version": "3.1.46-1ubuntu0.1~esm1"
        }
    ],
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42284.json"