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
| Link | Resource |
|---|---|
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-5xxx-qhh7-9287 | Exploit Vendor Advisory |
| https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-repo-blame | Third Party Advisory |
| https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-5xxx-qhh7-9287 | Exploit Vendor Advisory |
Configurations
History
No history.
Information
Published : 2026-08-25 02:16
Updated : 2026-09-02 18:17
NVD link : CVE-2026-78678
Mitre link : CVE-2026-78678
CVE.ORG link : CVE-2026-78678
JSON object : View
Products Affected
gitpython_project
- gitpython
CWE
CWE-88
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
