CVE-2026-78679: GitPython before 3.1.59 Arbitrary File Read via TagReference.create

Published Aug 25, 2026
·
Updated

GitPython before 3.1.59 contains an arbitrary file read vulnerability in TagReference.create() where a positional reference parameter bypasses the unsafe option guard. Attackers can supply a reference value like --file=<path> to read arbitrary files, with contents returned in the annotated tag message.

Affected Software

1 affected component
GitPython GitPython<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

Who can exploit this issue?

An attacker needs privileges to invoke application functionality that calls TagReference.create() and control its positional reference argument. The supplied CVSS vector indicates network reachability, low attack complexity, no user interaction, and low privileges required.

2

Are default GitPython installations affected?

The issue is in TagReference.create() before version 3.1.59, but the provided data does not establish whether any particular application uses that method or exposes attacker-controlled reference values by default.

3

What is the impact if exploitation succeeds?

An attacker can provide a value such as --file=<path> and cause arbitrary file contents to be included in an annotated tag message. The stated impact is high confidentiality impact, with no integrity or availability impact.

4

What can be done if upgrading is not immediately possible?

Do not allow untrusted users to control the positional reference parameter passed to TagReference.create(). Reject option-like reference values, particularly values beginning with -- and values using --file=<path>.

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