CVE-2026-78678
Publication date 25 August 2026
Last updated 26 August 2026
Ubuntu priority
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.
References
Other references
- https://www.cve.org/CVERecord?id=CVE-2026-78678
- https://github.com/cveproject/cvelistv5/tree/main/cves/2026/78xxx/cve-2026-78678.json
- https://github.com/gitpython-developers/gitpython/security/advisories/ghsa-5xxx-qhh7-9287
- https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-repo-blame