CVE-2026-78678
GitPython versions before 3.1.59 contain an incomplete denylist in …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-5xxx-qhh7-9287
- www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-repo-blame
- nvd.nist.gov/vuln/detail/CVE-2026-78678
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3788.yaml
- github.com/advisories/GHSA-5xxx-qhh7-9287
- nvd.nist.gov/vuln/detail/CVE-2026-78678
- cve.org/CVERecord?id=CVE-2026-78678
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.