VDB
Sign up

PYSEC-2026-3953

Quick fix

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

pip install --upgrade 'gitpython>=3.1.54'

Details

GitPython versions before 3.1.54 contain a remote code execution vulnerability in the check_unsafe_options guard that can be bypassed by smuggling git options inside single-character kwarg values. Attackers can supply crafted option dictionaries to clone_from, fetch, pull, push, ls_remote, iter_commits, blame, or archive methods to execute arbitrary OS commands via the --upload-pack parameter.

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