CVE-2026-78678

published 25 Aug 2026 · updated 8 Oct 2026

GitPython before 3.1.59 Arbitrary File Read via Repo.blame()

6.5MediumCVSS 6.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.1.59.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
gitpython-developers<3.1.593.1.59

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-78678 severity on Zeptric[![CVE-2026-78678](https://zeptric.io/badge/cve/CVE-2026-78678.svg)](https://zeptric.io/cve/CVE-2026-78678)