medium6.5
CVE-2026-78679
GitPython before 3.1.59 contains an arbitrary file read vulnerability in TagReference.create() where a positional reference parameter bypasses the unsafe optio…
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | GitPython | <= 3.1.58 | 3.1.59 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-3wxw-xv34-2frg
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-3wxw-xv34-2frg
- https://nvd.nist.gov/vuln/detail/CVE-2026-78679
- https://github.com/gitpython-developers/GitPython/pull/2208
- https://github.com/gitpython-developers/GitPython/commit/1b0d2d9b91575f7db44ef4ff58ac37fc9335e5f6
- https://github.com/gitpython-developers/GitPython/releases/tag/3.1.59
- https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-tagreference-create