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

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-25T01:30:35.582Z
- Modified: 2026-10-12T15:10:00.207Z
- Also known as: GHSA-5xxx-qhh7-9287, PYSEC-2026-3788
- Weaknesses: CWE-88, CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- gitpython-developers GitPython: before 3.1.59 (not affected: 3.1.59)
- gitpython (PyPI): before 3.1.59
- gitpython_project gitpython: before 3.1.59

## Every score

- VulnCheck: CVSS:4.0 7.1 High `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`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:4.0 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-5xxx-qhh7-9287> (exploit, evidence, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-repo-blame> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-78678> (advisory)
- <https://github.com/gitpython-developers/GitPython> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3788.yaml> (web)

## Sources

- CVE List: [CVE-2026-78678](https://www.cve.org/CVERecord?id=CVE-2026-78678), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-5xxx-qhh7-9287](https://github.com/advisories/GHSA-5xxx-qhh7-9287), CC-BY-4.0, modified 2026-09-08
- NVD: [CVE-2026-78678](https://nvd.nist.gov/vuln/detail/CVE-2026-78678), Public domain, modified 2026-10-12
- PyPA Advisory Database: [PYSEC-2026-3788](https://osv.dev/vulnerability/PYSEC-2026-3788), CC-BY-4.0, modified 2026-09-03

---

Page: https://cve.day/CVE-2026-78678 · Whole record: https://cve.day/CVE-2026-78678.json · Rebuilt by cve.day 2026-11-25T22:59:35.100Z
