CVE-2026-42215Gitpython Project Gitpython
High 8.8
Follow: this CVE · Gitpython Project · Gitpython Project Gitpython We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 3.1
- 8.8
- EPSS
- —
- Auth required
- Yes
- Published
- May 7, 2026
- Updated
- Nov 11, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
GitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by default, but the equivalent Python kwargs upload_pack and receive_pack bypass that check. If an application passes attacker-controlled kwargs into Repo.clone_from(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allow_unsafe_options is left at its default value of False. This issue has been patched in version 3.1.47.
What to do
- Apply the vendor's security update for Gitpython.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | gitpython |
≥ 3.1.30 < 3.1.47 |
3.1.47 |
pip install "gitpython>=3.1.47" |
| PyPI | gitpython |
≥ 3.1.30 < 3.1.47 |
3.1.47 |
pip install "gitpython>=3.1.47" |
Per OSV / GitHub Advisories (GHSA-rpm5-65cw-6hj4, PYSEC-2026-2160). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitpython_project | gitpython | ≥ 3.1.30 < 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
- python311-GitPython-3.1.49-1.1 on GA media · SUSE · openSUSE-SU-2026:10758-1 · May 12, 2026 High
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