cve.bz

CVE-2026-42284 gitpython project gitpython: Argument Injection

9.8 criticalExploit referenceEPSS 0.6%Fix available

Critical (9.8) in gitpython project gitpython. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in gitpython 3.1.47.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 48th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-05-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42284 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42284?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42284?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42284 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gitpython_project:gitpythonbefore 3.1.47

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-x2qx-6953-8485PyPIgitpython<3.1.473.1.47
PYSEC-2026-2161PyPIgitpython<3.1.473.1.47

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python-git3.1.30-1+deb12u3DEBIAN-CVE-2026-42284 DLA-4872-1
Debian13python-git3.1.44-1+deb13u1DEBIAN-CVE-2026-42284 DSA-6594-1
Debian14python-git3.1.50-1DEBIAN-CVE-2026-42284
Ubuntu25.10, 26.10python-gitno fix listedUBUNTU-CVE-2026-42284
UbuntuPro:14.04:LTSpython-git0.3.2~RC1-3ubuntu0.1~esm3USN-8303-1
UbuntuPro:16.04:LTSpython-git1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4USN-8303-1
UbuntuPro:18.04:LTSpython-git2.1.8-1ubuntu0.1~esm4USN-8303-1
UbuntuPro:20.04:LTSpython-git3.0.7-1ubuntu0.1~esm4UBUNTU-CVE-2026-42284 USN-8303-1
UbuntuPro:22.04:LTSpython-git3.1.24-1ubuntu0.1~esm3UBUNTU-CVE-2026-42284 USN-8303-1
UbuntuPro:24.04:LTSpython-git3.1.37-3ubuntu0.1~esm2UBUNTU-CVE-2026-42284 USN-8303-1
UbuntuPro:26.04:LTSpython-git3.1.46-1ubuntu0.1~esm1UBUNTU-CVE-2026-42284 USN-8303-1
Red Hatansible_automation_platform:2.5::el8ansible-core, ansible-test1:2.16.19-1.el8apRHSA-2026:42078
Red Hatansible_automation_platform:2.5::el8automation-controller, automation-controller-ui, automation-controller-cli and 2 more0:4.6.30-2.el8apRHSA-2026:42078
Red Hatansible_automation_platform:2.5::el8automation-eda-controller, automation-eda-controller-base, automation-eda-controller-base-services and 2 more0:1.1.20-1.el8apRHSA-2026:42078
Red Hatansible_automation_platform:2.5::el8automation-gateway, automation-gateway-config, automation-gateway-server0:2.5.20260715-1.el8apRHSA-2026:42078
Red Hatansible_automation_platform:2.5::el8automation-hub, python3.12-galaxy-ng0:4.10.16-1.el8apRHSA-2026:42078
Red Hatansible_automation_platform:2.5::el8python3.12-gitpython0:3.1.50-1.el8apRHSA-2026:42078
Red Hatansible_automation_platform:2.5::el8python3.12-pulp-ansible1:0.25.6-1.el8apRHSA-2026:42078
Red Hatansible_automation_platform:2.5::el8python3.12-pulp-container0:2.19.12-1.el8apRHSA-2026:42078
Red Hatansible_automation_platform:2.5::el8python3.12-pulpcore0:3.49.63-2.el8apRHSA-2026:42078
Red Hatansible_automation_platform:2.5::el8python3.12-pyjwt, python3.12-pyjwt+crypto0:2.13.0-1.el8apRHSA-2026:42078
Red Hatansible_automation_platform:2.5::el8python3.12-pysequoia, python3.12-pysequoia-debuginfo, python3.12-pysequoia-debugsource0:0.1.34-1.el8apRHSA-2026:42078
Red Hatansible_automation_platform:2.5::el8receptor, receptorctl, receptor-debuginfo and 1 more0:1.6.6-1.el8apRHSA-2026:42078
97 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morepython-GitPython3.1.34.1693646983.2a2ae77-150400.9.8.1SUSE-SU-2026:4072-1
Alpinev3.23, v3.24py3-gitpython3.1.49-r0ALPINE-CVE-2026-42284

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important vulnerability in GitPython allows for arbitrary code execution during Git clone operations within Red Hat products that utilize the library. The flaw stems from insufficient validation of user-supplied input to the `_clone()` function, enabling an attacker to inject malicious Git configurations, such as `core.hooksPath`, and execute arbitrary code. Exploitation requires an application to process untrusted input through GitPython's cloning functionalities.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8python3.12-gitpython-0:3.1.50-1.el8apFixed 2026-07-20RHSA-2026:42078
Red Hat Ansible Automation Platform 2.5 for RHEL 9python3.12-gitpython-0:3.1.50-1.el9apFixed 2026-07-20RHSA-2026:42078
Red Hat Ansible Automation Platform 2.6 for RHEL 9python3.12-gitpython-0:3.1.50-1.el9apFixed 2026-07-20RHSA-2026:42079
Red Hat Satellite 6.16 for RHEL 8foreman-0:3.12.0.23-1.el8satFixed 2026-10-01RHSA-2026:74506
Red Hat Satellite 6.16 for RHEL 8python-dynaconf-0:3.2.13-1.el8pcFixed 2026-10-01RHSA-2026:74506
Red Hat Satellite 6.16 for RHEL 8python-gitpython-0:3.1.62-1.el8pcFixed 2026-10-01RHSA-2026:74506
Red Hat Satellite 6.16 for RHEL 8python-lxml-0:4.9.2-5.el8pcFixed 2026-10-01RHSA-2026:74506
Red Hat Satellite 6.16 for RHEL 8python-pulpcore-0:3.49.39-4.el8pcFixed 2026-10-01RHSA-2026:74506
Red Hat Satellite 6.16 for RHEL 8python-sqlparse-0:0.6.0-1.el8pcFixed 2026-10-01RHSA-2026:74506
Red Hat Satellite 6.16 for RHEL 8rubygem-foreman_remote_execution-0:13.2.8-2.el8satFixed 2026-10-01RHSA-2026:74506
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Affected
Migration Toolkit for Applications 8mta/mta-solution-server-rhel9Not affected
Pen Drive Powered by Red Hat Lightspeedpen-drive/pen-drive-scanner-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-cpu-rhel9Will not fix
Red Hat AI Inference Serverrhaiis/vllm-cuda-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-rocm-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-tpu-rhel9Will not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/controller-rhel8Will not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/hub-rhel8Will not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/hub-rhel8Not affected
134 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42284.

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON