# CVE-2026-78678: GitPython before 3.1.59 Arbitrary File Read via Repo.blame()

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 3.1.59 (CNA); fix release not confirmed
- Status: published
- Published: 2026-08-25 · Modified: 2026-10-08
- Aliases: GHSA-5xxx-qhh7-9287, PYSEC-2026-3788, DEBIAN-CVE-2026-78678, CGA-2852-f5mc-5c45, ALPINE-CVE-2026-78678
- Record: https://cvemate.com/vulnerability/CVE-2026-78678 · JSON: https://cvemate.com/vulnerability/CVE-2026-78678/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v4.0, CVE.org) 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
- EPSS: 0.302%, percentile 24.635%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine py3-gitpython (Alpine Linux): \< 3.1.61-r0
- chainguard mlflow (Chainguard): \< 3.16.0-r0
- wolfi mlflow (Wolfi): \< 3.16.0-r0
- debian python-git (Debian): All versions (No fix recorded) \| \< 3.1.30-1+deb12u3 \| \< 3.1.44-1+deb13u1 \| \< 3.1.61-1
- gitpython\_project gitpython: \< 3.1.59
- gitpython-developers gitpython: \< 3.1.59
- PyPI gitpython (PyPI): \< 3.1.59

## References

- <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>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-78678>
- <https://github.com/gitpython-developers/GitPython>
- <https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3788.yaml>
- <https://security-tracker.debian.org/tracker/CVE-2026-78678>
- <https://security.alpinelinux.org/vuln/CVE-2026-78678>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/78xxx/CVE-2026-78678.json>

---

Data as of 2026-12-05T09:54:51.834Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
