CVE-2026-78679: GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251)
TagReference.create() forwards a caller-influenced positional reference value into git tag without it ever being inspected by the unsafe-option guard, allowing an arbitrary file read (the file’s contents are returned in-band as the annotated tag message). This is an incomplete-fix bypass of commit 3af0c251 (the fix for GHSA-3f7w-8rr8-f37f’s tag instance).
References
- github.com/advisories/GHSA-3wxw-xv34-2frg
- github.com/gitpython-developers/GitPython/commit/1b0d2d9b91575f7db44ef4ff58ac37fc9335e5f6
- github.com/gitpython-developers/GitPython/pull/2208
- github.com/gitpython-developers/GitPython/releases/tag/3.1.59
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-3wxw-xv34-2frg
- nvd.nist.gov/vuln/detail/CVE-2026-78679
- www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-tagreference-create
Code Behaviors & Features
Detect and mitigate CVE-2026-78679 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →