Skip to main content
VulnerabilityPublished Updated

CVE-2026-78679: GitPython · External Control of File Name or Path

Affects GitPythonSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.1 High : upgrade to 3.1.59 soon.

Data as of 21 Nov 2026, 17:35 UTC

CVSS 4.0 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 24% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.1.59
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.

What to do

Upgrade GitPython and gitpython to 3.1.59.

Affected software

ProductAffectedFixed in
gitpython-developersGitPythonAffected
  • <3.1.59
Fixed in
  • 3.1.59
PyPIgitpythonpkg:pypi/gitpythonOther threatsAffected
  • <3.1.59
Fixed in
  • 3.1.59

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fixed version of GitPython is available starting from version 3.1.59. Users should upgrade to version 3.1.59 or later to remediate this vulnerability. Patch status is confirmed by the affectedVersions data indicating versions before 3.1.59 are vulnerable.

Description

GitPython versions before 3.1.59 contain an arbitrary file read vulnerability in the TagReference.create() function. This flaw allows attackers to bypass an unsafe option guard by supplying a specially crafted positional reference parameter, such as --file=<path>, enabling them to read arbitrary files. The contents of these files are returned in the annotated tag message. The vulnerability has a high severity with a CVSS score of 7.1.

References

Community reviews

Loading reviews…