Arbitrary File Reading Vulnerability in GitPython by GitPython Developers
CVE-2026-78678

7.1HIGH

Key Information:

Status
Vendor
CVE Published:
25 August 2026

What is CVE-2026-78678?

GitPython versions prior to 3.1.59 are affected by an incomplete denylist in the unsafe_git_revision_options guard, specifically missing the --contents and -S options. This oversight allows malicious actors to exploit the Repo.blame() function to read and leak arbitrary files, such as sensitive system files. By passing specially crafted revision values like --contents=/etc/passwd, attackers can access unauthorized file contents and compromise the security of the system.

Affected Version(s)

GitPython 0 < 3.1.59

GitPython 3.1.59

References

CVSS V4

Score:
7.1
Severity:
HIGH
Confidentiality:
High
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

manus-use
.