VDB
Sign up
HIGH8.8

PYSEC-2026-3952

Quick fix

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

pip install --upgrade 'gitpython>=3.1.54'

Details

GitPython before 3.1.54 contains an incomplete denylist in unsafe_git_clone_options that omits --template, allowing attackers to achieve arbitrary command execution during clone operations. Attackers can supply --template pointing to a directory containing malicious post-checkout hooks that execute when git clones the repository.

Are you affected?

Enter the version of the package you're using.

Affected packages

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

References