VDB
Sign up

PYSEC-2026-3784

Quick fix

PYSEC-2026-3784 — gitpython: upgrade to the fixed version with the command below.

pip install --upgrade 'gitpython>=3.1.58'

Details

GitPython before 3.1.58 fails to validate submodule names from .gitmodules files, allowing attackers to create Git repositories at arbitrary filesystem paths outside the intended clone directory. Attackers can craft malicious repositories with traversal sequences in submodule names that GitPython processes during submodule initialization, creating attacker-controlled Git repositories at escaped filesystem locations.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/gitpython
Introduced in: 0Fixed in: 3.1.58
Fixpip install --upgrade 'gitpython>=3.1.58'

References