CVE-2026-76217Gitpython Project Gitpython
High 7.1
Follow: this CVE · Gitpython Project · Gitpython Project Gitpython We alert you by email or Slack (account required).
- Priority
- 43
- CVSS 4.0
- 7.1
- EPSS
- —
- Auth required
- Yes
- Published
- Aug 19, 2026
- Updated
- Sep 3, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-73
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
GitPython versions before 3.1.58 fail to validate options passed to git rm and git checkout commands in IndexFile.remove() and Head.checkout(). Attackers can supply --pathspec-from-file and --pathspec-file-nul parameters to read arbitrary files accessible to the process, with full file contents returned in GitCommandError.stderr.
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.58 |
3.1.58 |
pip install "gitpython>=3.1.58" |
| PyPI | gitpython |
< 3.1.58 |
3.1.58 |
pip install "gitpython>=3.1.58" |
Per OSV / GitHub Advisories (GHSA-hh9p-6wh2-4mfc, PYSEC-2026-3841). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitpython_project | gitpython | < 3.1.58 |
Official advisories
- Security update for python-GitPython · SUSE · openSUSE-SU-2026:21874-1 · Sep 18, 2026 Critical
- Security update for python-GitPython · SUSE · SUSE-SU-2026:4072-1 · Sep 8, 2026 Critical
- python313-GitPython-3.1.59-2.1 on GA media · SUSE · openSUSE-SU-2026:11566-1 · Aug 21, 2026 High
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 Exploit Vendor Advisory
- www.vulncheck.com Third Party Advisory