Skip to main content
VulnerabilityPublished Updated

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

Affects GitPythonSource CVE Database V5

0
Compare

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

Data as of 21 Nov 2026, 17:35 UTC

CVSS 4.0 base score
8.6High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 7% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.1.59
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/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

Upgrade GitPython to version 3.1.59 or later, where this vulnerability is fixed by disabling merge_includes when parsing .gitmodules. Since the vulnerability is patched in 3.1.59, applying this official fix fully mitigates the issue.

Description

GitPython versions before 3.1.59 contain a vulnerability where the merge_includes feature is not disabled when parsing .gitmodules files. This flaw allows attackers to craft malicious .gitmodules files with include directives that reference arbitrary local file paths. When the repository's submodules are accessed, the GitConfigParser raises an exception that leaks the first line of the targeted file in the error message.

References

Community reviews

Loading reviews…