Skip to main content
VulnerabilityPublished Updated

CVE-2026-114145: GitPython · Incorrect Behavior Order

Affects GitPythonSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.5 High : upgrade to 3.2.1 soon.

Data as of 5 Dec 2026, 18:46 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.17.5
EPSS
0.4% chance of exploitation in 30 days – higher than 38% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.2.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Oct 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 6 Dec 2026.

What to do

Upgrade GitPython and gitpython to 3.2.1.

Affected software

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

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

AI-suggested

This vulnerability is fixed in GitPython version 3.2.1. Users should upgrade to version 3.2.1 or later to remediate this issue. There are no vendor advisories indicating alternative mitigations or that no action is required. Until upgrading, applications should avoid accepting untrusted submodule paths or cloning into sensitive directories such as .git/hooks.

Description

GitPython versions prior to 3.2.1 contain a vulnerability in the create_submodule() function that allows an attacker to specify a submodule path such as .git/hooks. This can lead to the placement of an executable post-checkout hook that a subsequent Git operation executes. The issue arises because the repository cloning occurs before the path validation rejects unsafe destinations, and the planted file is not removed after the error is raised. This vulnerability is fixed in GitPython version 3.2.1.

References

Community reviews

Loading reviews…