Medium severity6.5NVD Advisory· Published Aug 25, 2026· Updated Sep 2, 2026
CVE-2026-78678
CVE-2026-78678
Description
GitPython versions before 3.1.59 contain an incomplete denylist in the unsafe_git_revision_options guard that omits --contents and -S options, allowing attackers to read arbitrary files by passing these options to Repo.blame(). Attackers can supply revision values like --contents=/etc/passwd to leak file contents through the blame result returned to the caller.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
GitPythonPyPI | < 3.1.59 | 3.1.59 |
Affected products
3- osv-coords2 versionspkg:rpm/opensuse/python-GitPython&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-GitPython&distro=openSUSE%20Leap%2016.0
< 3.1.59-3.1+ 1 more
- (no CPE)range: < 3.1.59-3.1
- (no CPE)range: < 3.1.44-160000.4.1
- Range: <3.1.59
Patches
Vulnerability mechanics
References
5- github.com/gitpython-developers/GitPython/security/advisories/GHSA-5xxx-qhh7-9287nvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-5xxx-qhh7-9287ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-78678ghsaADVISORY
- www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-repo-blamenvdThird Party AdvisoryWEB
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3788.yamlghsaWEB
News mentions
1- Gitpython: Five Vulnerabilities Including Critical Flaw Disclosed TogetherVypr Intelligence · Aug 25, 2026