CVE-2026-42284
published high CVSS 3.1 · 8.1GitPython: Unsafe option check validates multi_options before shlex.split transforms it
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gitpython-developers | — | GitPython< 3.1.47 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | py3-gitpython | Fixed | 3.1.49-r0 | Package fix record |
| Debian | bookworm | python-git | Advisory build | 3.1.30-1+deb12u3 | DLA-4872-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| Ubuntu | focal | python-git | Advisory build | 3.0.7-1ubuntu0.1~esm4 | USN-8303-1 |
| Alpine Linux | v3.23 | py3-gitpython | Fixed | 3.1.49-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-gitpython | Fixed | 3.1.49-r0 | Package fix record |
| Debian | trixie | python-git | Advisory build | 3.1.44-1+deb13u1 | DSA-6594-1 |
Show 13 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP5 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | SLE-16 | python313-GitPythonnoarch | Advisory build | 3.1.44-160000.3.1 | SUSE-SU-2026:21813-1 |
| SUSE / openSUSE | SLE-3-SP7 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-GitPythonnoarch | Advisory build | 3.1.44-160000.3.1 | OPENSUSE-SU-2026:20777-1 |
| Ubuntu | focal | python3-git | Advisory build | 3.0.7-1ubuntu0.1~esm4 | USN-8303-1 |
| Ubuntu | jammy | python-git | Advisory build | 3.1.24-1ubuntu0.1~esm3 | USN-8303-1 |
| Ubuntu | jammy | python3-git | Advisory build | 3.1.24-1ubuntu0.1~esm3 | USN-8303-1 |
| Ubuntu | noble | python-git | Advisory build | 3.1.37-3ubuntu0.1~esm2 | USN-8303-1 |
| Ubuntu | noble | python3-git | Advisory build | 3.1.37-3ubuntu0.1~esm2 | USN-8303-1 |
| Ubuntu | resolute | python-git | Advisory build | 3.1.46-1ubuntu0.1~esm1 | USN-8303-1 |
| Ubuntu | resolute | python3-git | Advisory build | 3.1.46-1ubuntu0.1~esm1 | USN-8303-1 |
Description
GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gitpython-developers | GitPython | < 3.1.47 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-88 CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
3Provider assertions
2GitHub_M · cna
GitPython: Unsafe option check validates multi_options before shlex.split transforms it
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 50d45fb05115bb1b1b3e7135fafcc39663488c4d09a352921192be7120f5bc8d
- Ingested
- 23 Sep 2026, 09:14:00 UTC
- Source record
- Official CVE record