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

Published Aug 25, 2026
·
Updated

GitPython versions before 3.1.59 contain an incomplete denylist in the unsafegitrevisionoptions 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

1 affected component
GitPython GitPython<3.1.59

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GitPython to a version that resolves this vulnerability.

    Fixed in 3.1.59

Event History

Aug 25, 2026
CVE Published
via MITRE·01:30 AM
Data Sourced
via MITRE·01:30 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What application behavior creates exposure to this issue?

An application is exposed when it passes attacker-controlled revision values to GitPython's Repo.blame() method. The vulnerable guard can be bypassed with revision options including --contents or -S.

2

What level of access does an attacker need?

The CVSS vector indicates low privileges are required. The attacker must be able to provide a value that is used as the revision argument to Repo.blame().

3

What is the practical impact of successful exploitation?

An attacker can use a value such as --contents=/etc/passwd to cause file contents to be returned through the blame result. The stated impact is disclosure of arbitrary readable files, with no integrity or availability impact indicated.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203