CVE-2026-42284Gitpython Project Gitpython
Critical 9.8 No auth needed
Follow: this CVE · Gitpython Project · Gitpython Project Gitpython We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- May 7, 2026
- Updated
- Nov 11, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-88
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Gitpython.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | gitpython |
< 3.1.47 |
3.1.47 |
pip install "gitpython>=3.1.47" |
| PyPI | gitpython |
< 3.1.47 |
3.1.47 |
pip install "gitpython>=3.1.47" |
Per OSV / GitHub Advisories (GHSA-x2qx-6953-8485, PYSEC-2026-2161). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitpython_project | gitpython | < 3.1.47 |
Official advisories
- Red Hat Security Advisory: Satellite 6.17.12 Async Update · Red Hat · RHSA-2026:74505 · Nov 23, 2026 Critical
- Red Hat Security Advisory: Satellite 6.16.14 Async Update · Red Hat · RHSA-2026:74506 · Nov 23, 2026 Critical
- Red Hat Security Advisory: Satellite 6.18.10 Async Update · Red Hat · RHSA-2026:74504 · Nov 23, 2026 Critical
- Security update for python-GitPython · SUSE · SUSE-SU-2026:4072-1 · Sep 8, 2026 Critical
Also: Red Hat (+3)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Release Notes
- github.com Exploit Vendor Advisory
- www.tenable.com