Incorrect Behavior Order Affecting gitpython package, versions [,3.2.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.35% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-GITPYTHON-21692513
  • published24 Oct 2026
  • disclosed21 Oct 2026
  • creditHieu Tran

Introduced: 21 Oct 2026

NewCVE-2026-114145  (opens in a new tab)
CWE-696  (opens in a new tab)

How to fix?

Upgrade GitPython to version 3.2.1 or higher.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Incorrect Behavior Order via submodule checkout destination validation in git/objects/submodule/base.py. Submodule checkout destinations can pass the containment check and be accepted before cloning has altered the filesystem, allowing an attacker to place submodule metadata or working-tree content outside the intended repository boundaries. This includes NTFS/HFS metadata-alias bypasses, invalid Windows path components, NUL bytes in submodule names, and destinations nested inside another submodule's Git directory. An attacker who controls a malicious repository can trigger arbitrary path writes on a victim's filesystem when the victim clones or updates submodules.

CVSS Base Scores

version 4.0
version 3.1