6.5Medium
CVE-2026-78679GitPython before 3.1.59 Arbitrary File Read via TagReference.create
Description
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.
Weakness (CWE):
CWE-73
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| gitpython project | gitpython | < 3.1.59 | |
| gitpython-developers | GitPython | < 3.1.59, fixed 3.1.59 |
References and patches
- GitHub Security Advisory (GHSA-3wxw-xv34-2frg) vendor-advisory
- VulnCheck Advisory: GitPython before 3.1.59 Arbitrary File Read via TagReference.create third-party-advisory