Vulnerability · CVE-2026-78679
GitPython: arbitrary file read via attacker-controlled branch name in (incomplete fix of CVE-2026-78679)
Published Aug 25, 2026 · catalog updated Oct 29, 2026 · GitPython: arbitrary file read
Last checked Oct 29, 2026. A connected source was read within the last 7 days.
Check if you run it
No confirmed exploitation is on record for CVE-2026-78679. EPSS is 0.32%. Act only if a listed version of GitPython: arbitrary file read is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (GitPython: arbitrary file read).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- Unknown—
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.32%
- Remediation
- Advisory link
- Affected products
- Debian:12 python-git · Debian:13 python-git · Debian:14 python-git · pypi gitpython
Head.checkout() guards its **kwargs against unsafe Git options but never inspects its own positional argument — the branch name — which reaches the git checkout argv with no – separator. A repository whose default branch is named –pathspec-from-file=/etc/passwd makes a consumer that merely clones it and checks out the default branch return the entire contents of that file to the caller. This is the exact combination of two advisories the …
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- Debian:12 python-git3.1.30-1, 3.1.30-1+deb12u2, 3.1.36-1
- Debian:13 python-git0 → 3.1.44-1+deb13u1
- Debian:14 python-git0 → 3.1.61-1
- pypi gitpythonversion unspecified
How to fix CVE-2026-78679
Upgrade
CVE-2026-78679 lists a fix boundary at 3.1.44-1+deb13u1. Compare the installed build with that boundary before you change production.
Version check
Fixed in 3.1.44-1+deb13u1 · 4 other ranges on the advisory
Advisory
Open the cve_org record and follow its fix.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2026-78679. EPSS is 0.32%. Act only if a listed version of GitPython: arbitrary file read is installed.
Which versions are affected?
Compare what you have installed with 3.1.30-1, 3.1.30-1+deb12u2, 3.1.36-1, 0 → 3.1.44-1+deb13u1, 0 → 3.1.61-1. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
No weakness class is stored. EPSS 0.32%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Technology hubs
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Oct 27, 2026 · GitLab Advisory Database
Detected
Head.checkout() guards its **kwargs against unsafe Git options but never inspects its own positional argument — the branch name — which reaches the git checkout argv with no – separator. A repository whose default branch is named –pathspec-from-file=/etc/passwd makes a consumer that merely clones it and checks out the default branch return the entire contents of that file to the caller
Oct 29, 2026 · Trivy Vulnerability DB
Fix available
python-git fixed in 3.1.44-1+deb13u1; python-git fixed in 3.1.61-1
Oct 29, 2026 · Trivy Vulnerability DB
Fix available
python-git fixed in 3.1.44-1+deb13u1
Oct 29, 2026 · Trivy Vulnerability DB
Fix available
python-git fixed in 3.1.61-1
Oct 29, 2026 · Trivy Vulnerability DB
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= to read arbitrary files, with contents returned in the annotated tag message.
Sources
- CVE.orgVulnerability recordCVE-2026-78679
Official CVE identifier
cve.org - GitLab Advisory DatabasePackage advisoryCVE-2026-78679
Head.checkout() guards its **kwargs against unsafe Git options but never inspects its own positional argument — the branch name — which reaches the git checkout argv with no – separator. A repository whose default branch is named –pathspec-from-file=/etc/passwd makes a consumer that merely clones it and checks out the default branch return the entire contents of that file to the caller
advisories.gitlab.com - Trivy Vulnerability DBPackage advisoryDEBIAN-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 option guard. Attackers can supply a reference value like --file= to read arbitrary files, with contents returned in the annot
osv.dev
References
Freshness
Last verified in this catalog Oct 28, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.
- Trivy Vulnerability DBOct 29, 2026
- CVE.orgOct 28, 2026
- GitLab Advisory DatabaseOct 28, 2026