CVE-2026-78678
7.1
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
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| gitpython-developers | GitPython | 0 < 3.1.59 | affected |
| gitpython-developers | GitPython | 3.1.59 | unaffected |
Weaknesses
- CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: poc
- Automatable: no
- Technical Impact: partial
Additional References
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
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.